“Css3 pr animation duration”的版本间差异
本页内容
(创建页面,内容为“{{DISPLAYTITLE:animation-duration}}4 = CSS3 animation-duration 属性 = 设置动画在两秒内完成: <sample title="" desc="" lang="html" hererun="1"> animation-duration:2s; -webkit-animation-duration:2s; →Safari 和 Chrome: </sample> <run name=""> <html><!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>小白教程(xiaobai.wang)</title> <style> div { width:100px; height:100px; background:red; pos…”) |
无编辑摘要 |
||
第1行: | 第1行: | ||
{{DISPLAYTITLE:animation-duration}}[[Category: | {{DISPLAYTITLE:animation-duration}}[[Category:css reference|33]] | ||
= CSS3 animation-duration 属性 = | = CSS3 animation-duration 属性 = | ||
2022年8月19日 (五) 04:08的版本
CSS3 animation-duration 属性
设置动画在两秒内完成:
示例
animation-duration:2s;
-webkit-animation-duration:2s; /* Safari 和 Chrome */
浏览器支持
表格中的数字表示支持该属性的第一个浏览器版本号。
紧跟在 -webkit-, -ms- 或 -moz- 前的数字为支持该前缀属性的第一个浏览器版本号。
属性 | |||||
---|---|---|---|---|---|
animation-duration | 43.03.0 -webkit- | 10.0 | 16.05.0 -moz- | 9.04.0 -webkit- | 30.015.0 -webkit-12.0 -o- |
标签定义及使用说明
animation-duration属性定义动画完成一个周期需要多少秒或毫秒。
默认值: | 0 |
继承: | no |
版本: | CSS3 |
JavaScript 语法: | object object.style.animationDuration="3s" |
语法
animation-duration: time;
值 | 说明 |
---|---|
time | 指定动画播放完成花费的时间。默认值为 0,意味着没有动画效果。 |
相关文章
CSS3 教程: CSS3 动画