ITPub博客

首页 > IT职业 > IT图书 > Animation

Animation

IT图书 作者:gjfer 时间:2021-09-09 09:51:40 0 删除 编辑

说明:

复合属性,检索或设置对象所应用的特效属性。(如果是多组属性值,以逗号分割)

注意:如果只提供一个time'> 参数,则为 animation-duration '> 的值定义;如果提供二个time'> 参数,第二个为 animation-delay '> 的值定义。

语法:

animation个的取值、含义

图片描述

animation的属性

兼容性:

animation的兼容性

图片描述

兼容

动画:


        .main{ width: 400px; height: 400px;border:1px solid rgb(200, 200, 200); position: relative;}

        .yuan{ width: 40px; height: 40px; border-radius: 50%; background-color: rgb(243, 223, 8); margin: 20px auto 0;

            opacity: 1;animation: move 3s ease-out 1s forwards; transform: translate(80px);}

        @keyframes move{

            0%{opacity: 1;width:40px;height: 40px;transform: translate(0)}

            25%{opacity: 0.5;width: 30px;height: 30px;transform: translate(20px)}

            50%{opacity: 0;width: 20px;height: 20px;transform: translate(40px)}

            75%{opacity: 0.5;width: 30px;height: 30px;transform: translate(60px)}

            100%{opacity: 1;width: 40px;height: 40px;transform: translate(80px)}

        }







作者:超爱吃小龙虾
链接:https://www.jianshu.com/p/fdedb01aeb77


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/3789/viewspace-2813574/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-09-26

  • 博文量
    0
  • 访问量
    833