Specifies how many times an animation cycle should play.
Overview table1
animation-iteration-count: <single-animation-iteration-count>
animation-iteration-count: infinite
A repeating pulse animation that shrinks and dims an element, then restores it. Change the animation-iteration-count from infinite to a number to see the effect.
div.selected {
animation-name: pulse;
animation-duration: 1s;
animation-iteration-count: infinite;
}
@keyframes pulse {
from {
transform : scale(1) translateX(0);
opacity : 1;
}
50% {
transform : scale(0.75) translateX(0);
opacity : 0.25;
}
to {
transform : scale(1) translateX(0);
opacity : 1;
}
}
Usage
This property accepts non-integer values, such as 1.5 or 2.75. If a non-integer value is specified, the animation terminates mid-cycle. Negative numbers are not valid.
This property is often used in conjunction an animation-direction value of alternate, which will cause the animation to play in reverse on alternate cycles.
Related specificationsMicrosoft 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