To add an animation effect:
1 Animation-name: Specify animation name 2.animation-duration: Set Animation's total time-consuming 3.animation-duration: Set the number of times the animation is played, by default 1, you can specify a specific value, or you can specify infinite (unlimited) 4.ani Mation-direction:alternate: Social alternating animation alternate alternating 5.animation-delay:2s This is the state at the end of the animation's delay setting Animation: By default, after the animation finishes, Will go back to the original state Animation-fill-mode:both | | Forwards | | Backwardsforwards: The state at the end of the animation is preserved and, in the case of a delay, does not immediately go to the initial state of the animation backwards: the state at the end of the animation is not preserved, and if the animation has an initial state, The name is immediately both to the initial state: The end state of the animation is preserved, and the initial state of the animation is immediately entered in the event of a delay animation-tining-function:linear uniform Animated event Function Animation-play-state:running | | Paused Play | | Pause Create animation @keyframes dong (animated name) {0%{Transform:translate () ...} || From the equivalent of 0%50%{}..... 100%{} || to{} to equivalent to 100%}
CSS3 animation effects