首页 > 其他 > 详细

【动画开发】animation动画最简单写法

时间:2020-03-16 16:05:23      阅读:83      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <style type="text/css">
            .box{
                width: 100px;
                height: 100px;
                background-color: red;
                border-radius: 50%;
                animation: walk 1s infinite alternate;
            }
            @keyframes walk{
                0%{transform: translate3d(0,0,0) scale(1) rotate(0deg) skew(0deg);}
                100%{transform: translate3d(0,100px,0) scale(1) rotate(90deg) skew(90deg);}
                /*50%{transform: translate3d(200px,100px,0)}*/
                /*75%{transform: translate3d(0,100px,0)}
                100%{transform: translate3d(0,0,0)}*/
            }
        </style>
    </head>
    <body>
        <div class="box"></div>
        
    </body>
</html>

3d动画转动效果

技术分享图片

 

【动画开发】animation动画最简单写法

原文:https://www.cnblogs.com/xiaohuizhang/p/12504402.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!