0
点赞
收藏
分享

微信扫一扫

搭建hadoop和hive分析脚本

胡桑_b06e 2023-07-25 阅读 68

CSS动画 是什么?

这里感兴趣的可以去了解 动画是什么
在这里插入图片描述

常用的css动画属性

:transitionend

-transition: 过渡动画
-transition-property : 属性
-transition-duration : 间隔
-transition-timing-function : 曲线
-transition-delay : 延迟

animationend

-animation / keyframes
-animation-name : 动画名称,对应 @keyframes
-animation-duration : 间隔
-animation-timing-function : 曲线
-animation-delay : 延迟
-animation-iteration-count : 次数
-infinite : 循环动画
-animation-direction : 方向
-alternate : 反向播放
-animation-fill-mode : 静止模式
-forwards : 停止时,保留最后⼀帧
-backwards : 停止时, 回到第⼀帧
-both : 同时运用 forwards / backwards

动画属性: 尽量使用动画属性进行动画, 能拥有较好的性能表现

-translate
-scale
-rotate
-skew
-opacity
-colo

实例

animation-name 属性用来将动画绑定到指定的 HTML 元素,属性的可选值如下:

 <style>
        @keyframes ball {
            0% { top: 0px; left: 0px;}
            50% { top: 200px; left: 200px;}
            100% { top: 0px; left: 0px;} // 回到初始的位置
        }
        div {
            width: 50px;
            height: 50px;
            border: 10px solid red;
            position: relative;
            animation-name: ball;
        }
    </style>

在这里插入图片描述
以上就是CSS动画感谢大家的阅读
如碰到其他的问题 可以私下我 一起探讨学习
如果对你有所帮助还请 点赞 收藏谢谢~!
关注收藏博客 作者会持续更新…

举报

相关推荐

0 条评论