Zum Inhalt springen

Animationen: Unterschied zwischen den Versionen

Aus Computech CMS Wiki
Andreas (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Andreas (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
 
Zeile 1: Zeile 1:
  '''Property'''                 '''Description'''
  '''Property'''                     '''Description'''
  @keyframes               Specifies the animation code
--------------------------------------------------------------------------------------------------------------
  animation                 A shorthand property for setting all the animation properties
  @keyframes                   Specifies the animation code
  animation-delay           Specifies a delay for the start of an animation
  animation                     A shorthand property for setting all the animation properties
  animation-direction       Specifies whether an animation should play in reverse direction or alternate cycles
  animation-delay               Specifies a delay for the start of an animation
  animation-duration       Specifies how many seconds or milliseconds an animation takes to complete one cycle
  animation-direction           Specifies whether an animation should play in reverse direction or alternate cycles
  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-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           Specifies the name of the @keyframes animation
  animation-iteration-count     Specifies the number of times an animation should be played
  animation-play-state     Specifies whether the animation is running or paused
  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