Defines whether an animation should run in reverse on some or all cycles.
Overview tablenormal
animation-direction: alternate
animation-direction: alternate-reverse
animation-direction: normal
animation-direction: reverse
A repeating pulse animation that shrinks and dims an element, then restores it. Change the animation-direction from normal to a different keyword value to see the effect.
div.selected {
animation-name: pulse;
animation-duration: 0.5s;
animation-direction: alternate;
animation-iteration-count: infinite;
}
@keyframes pulse {
from {
transform : scale(1) translateX(0);
opacity : 1;
}
to {
transform : scale(0.75) translateX(0);
opacity : 0.25;
}
}
Usage
Can also be a comma-separated list of directions, e.g., reverse, normal, alternate, where each direction is applied to the corresponding ordinal position value of the animation-name property.
Related specifications
Microsoft Developer Network: Windows Internet Explorer API reference Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4