lsy0403
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>CSS3 动画</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            background-color: #F7F7F7;
        }

        .box {
            width: 400px;
            margin: 100px auto;
        }

        .box img{
            /*4.调用动画*/
            animation: rotateFuc 4s linear 0s;
        }


        /*动画的第一步*/
        /*1.申明动画序列  @keyframes  跟着的是动画序列的名称*/
        @keyframes  rotateFuc{
            /*2.写动画的节点  from 0%  to 100%   百分比是时间节点*/
            from{

            }

            25%{
                /*3.添加动画属性*/
                transform: rotate(360deg) scale(2);
            }

            75%{
                /*3.添加动画属性*/
                transform: rotate(720deg) scale(0.5);
            }

            to{
                transform: none;
            }
        }





    </style>
</head>
<body>
    <div class="box">
        <img src="./images/fengche.png">
    </div>
</body>
</html>

 

分类:

技术点:

相关文章:

  • 2021-06-20
  • 2022-01-01
  • 2021-12-10
  • 2022-01-28
  • 2021-11-28
  • 2021-08-15
  • 2021-09-22
  • 2021-10-25
猜你喜欢
  • 2021-08-14
  • 2022-03-07
  • 2022-12-23
  • 2021-11-28
  • 2021-11-21
  • 2021-11-28
相关资源
相似解决方案