animate.css动画效果

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
    <style>
      .box{
        width: 200px;
        height: 200px;
        background-color: pink;
      }
    </style>
  </head>
  <body>
    <!-- 需要加上类名 animate__animated 不然有些动画不生效 -->
    <div class="box animate__animated animate__swing"></div>
  </body>
</html>

 

posted @ 2022-01-12 11:19  yw3692582  阅读(37)  评论(0编辑  收藏  举报