Ani
|
CSS3 Animations(Fg. 1) With CSS3, we can create animations, which can replace animated images, Flash animations, and JavaScripts in existing web pages.
Internet Explorer 10, Firefox, and Opera supports the @keyframes rule and animation property.
|
Fg. 1 (CSS3 Animations)
@keyframes myfirst
|
|
Fg. 2.1 (CSS3 Animations)
div
Fg. 2.2 (CSS3 Animations)
div
|
CSS3 Animation(Fg.s 2) When the animation is created in the @keyframe, bind it to a selector, otherwise the animation will have no effect. Bind the animation to a selector by specifying at least these two CSS3 animation properties:( See Fg. 2.1)
Syntax
animation: name duration timing-function delay iteration-count direction;
The animation property is a shorthand property for six of the animation properties:( See Fg. 2.2)
|
|
CSS3 @keyframes Rule(Fg.s 3) With the @keyframes rule, you can create animations.
Syntax
@keyframes animationname {keyframes-selector {css-styles;}}
Examples (Fg. 3.1 & Fg. 3.2) |
Fg. 3.1 (CSS3 @keyframes Rule )
@keyframes myfirst
Fg. 3.2 (CSS3 @keyframes Rule )
@keyframes myfirst
|