Animationen
Erscheinungsbild
Property Description -------------------------------------------------------------------------------------------------------------- @keyframes Specifies the animation code animation A shorthand property for setting all the animation properties animation-delay Specifies a delay for the start of an animation animation-direction Specifies whether an animation should play in reverse direction or alternate cycles animation-duration Specifies how many seconds or milliseconds an animation takes to complete one cycle animation-fill-mode Specifies a style for the element when the animation is not playing (when it is finished, or when it has a delay) animation-iteration-count Specifies the number of times an animation should be played animation-name Specifies the name of the @keyframes animation animation-play-state Specifies whether the animation is running or paused animation-timing-function Specifies the speed curve of the animation
Animation Shorthand Property
The example below uses six of the animation properties:
div {
animation-name: example;
animation-duration: 5s;
animation-timing-function: linear;
animation-delay: 2s;
animation-iteration-count: infinite;
animation-direction: alternate;
}
The same animation effect as above can be achieved by using the shorthand animation property:
div {
animation: example 5s linear 2s infinite alternate;
}
Genauere Informationen: http://www.w3schools.com/css/css3_animations.asp