当前位置:K88软件开发文章中心编程语言Css/Css3Css/Css301 → 文章内容

CSS3 animation-fill-mode 属性

减小字体 增大字体 作者:佚名  来源:网上搜集  发布时间:2019-1-26 10:30:25

由 胖大叔 创建,小路依依 最后一次修改 2016-07-22 CSS 参考手册 定义和用法 animation-fill-mode:设置样式以在动画不播放时应用元素。 注释:其属性值是由逗号分隔的一个或多个填充模式关键词。 默认值: none 继承性: no 版本: CSS3 JavaScript 语法: object.style.animationFillMode=none 语法animation-fill-mode: none|forwards|backwards|both|initial|inherit; 值 描述 none 默认值。无样式 forwards 动画结束后,使用元素的结束属性值。 backwards 使用元素的起始值。 both 动画将遵循向前和向后的规则。 实例 实例 为 h1 元素规定填充模式: h1 { animation-fill-mode: forwards; } 尝试一下 ? 浏览器支持 属性 animation-fill-mode 4.0 -webkit- 10.0 16.05.0 -moz- 4.0 -webkit- 15.0 -webkit-12.112.0 -o- Internet Explorer 10、Firefox 以及 Opera 支持 animation-fill-mode 属性。 Safari 和 Chrome 支持替代的 -webkit-animation-fill-mode 属性。注释:Internet Explorer 9 以及更早的版本不支持 animation-fill-mode 属性。 相关页面 CSS3 教程:CSS3 动画 CSS 参考手册

CSS3 animation-fill-mode 属性