“Css3 pr animation”的版本间差异

本页内容
(创建页面,内容为“{{DISPLAYTITLE:animation}}2 = CSS3 animation(动画) 属性 = 使用简写属性把 animation 绑定到一个<div> 元素: <sample title="" desc="" lang="html" hererun="1"> div { animation:mymove 5s infinite; -webkit-animation:mymove 5s infinite; →‎Safari 和 Chrome:​ } </sample> <run name=""> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>小白教程(xiaobai.wang)</title> <style> div { wid…”
 
Neo讨论 | 贡献
无编辑摘要
 
(未显示同一用户的3个中间版本)
第1行: 第1行:
{{DISPLAYTITLE:animation}}[[Category:css3 animations|2]]
{{DISPLAYTITLE:CSS animation}}[[Category:css reference|31]]
= CSS3 animation(动画) 属性 =
= CSS3 animation(动画) 属性 =


第56行: 第56行:
{| class="table table-striped table-hover"
{| class="table table-striped table-hover"
! 属性
! 属性
!
! Chrome
!
! Internet Explorer / Edge
!
! Firefox
!
! Safari
!
! Opera
|-
|-
| animation
| animation

2022年10月18日 (二) 19:41的最新版本

CSS3 animation(动画) 属性

使用简写属性把 animation 绑定到一个<div> 元素:


示例

div
{
    animation:mymove 5s infinite;
    -webkit-animation:mymove 5s infinite; /* Safari 和 Chrome */
}

浏览器支持

表格中的数字表示支持该属性的第一个浏览器版本号。

紧跟在 -webkit-, -ms- 或 -moz- 前的数字为支持该前缀属性的第一个浏览器版本号。

属性 Chrome Internet Explorer / Edge Firefox Safari Opera
animation 43.04.0 -webkit- 10.0 16.05.0 -moz- 9.04.0 -webkit- 30.015.0 -webkit-12.0 -o-
默认值: none 0 ease 0 1 normal
继承: no
版本: CSS3
JavaScript 语法: object.style.animation="mymove 5s infinite"

语法

animation: name duration timing-function delay iteration-count direction fill-mode play-state;
说明
animation-name 指定要绑定到选择器的关键帧的名称
animation-duration 动画指定需要多少秒或毫秒完成
animation-timing-function 设置动画将如何完成一个周期
animation-delay 设置动画在启动前的延迟间隔。
animation-iteration-count 定义动画的播放次数。
animation-direction 指定是否应该轮流反向播放动画。
animation-fill-mode 规定当动画不播放时(当动画完成时,或当动画有一个延迟未开始播放时),要应用到元素的样式。
animation-play-state 指定动画是否正在运行或已暂停。
initial 设置属性为其默认值。 阅读关于 initial的介绍。
inherit 从父元素继承属性。 阅读关于 initinherital的介绍。

相关文章

CSS3 教程: CSS3 动画

此页面最后编辑于2022年10月18日 (星期二) 19:41。