Animationen: Unterschied zwischen den Versionen
Erscheinungsbild
Die Seite wurde neu angelegt: „ '''Property''' '''Description''' @keyframes Specifies the animation code animation A shorthand property for…“ |
Keine Bearbeitungszusammenfassung |
||
| (Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
'''Property''' | '''Property''' '''Description''' | ||
@keyframes | -------------------------------------------------------------------------------------------------------------- | ||
animation | @keyframes Specifies the animation code | ||
animation-delay | animation A shorthand property for setting all the animation properties | ||
animation-direction | animation-delay Specifies a delay for the start of an animation | ||
animation-duration | animation-direction Specifies whether an animation should play in reverse direction or alternate cycles | ||
animation-fill-mode | animation-duration Specifies how many seconds or milliseconds an animation takes to complete one cycle | ||
animation-iteration-count Specifies the number of times an animation should be played | 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-name | animation-iteration-count Specifies the number of times an animation should be played | ||
animation-play-state | animation-name Specifies the name of the @keyframes animation | ||
animation-timing-function Specifies the speed curve of the 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: | |||
<syntaxhighlight lang="css"> | |||
div { | |||
animation-name: example; | |||
animation-duration: 5s; | |||
animation-timing-function: linear; | |||
animation-delay: 2s; | |||
animation-iteration-count: infinite; | |||
animation-direction: alternate; | |||
} | |||
</syntaxhighlight> | |||
The same animation effect as above can be achieved by using the shorthand <code>animation</code> property: | |||
<syntaxhighlight lang="css"> | |||
div { | |||
animation: example 5s linear 2s infinite alternate; | |||
} | |||
</syntaxhighlight> | |||
Genauere Informationen: http://www.w3schools.com/css/css3_animations.asp | |||
Aktuelle Version vom 24. November 2015, 15:41 Uhr
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