Loading...
.card {
animation-range: entry;
animation: reveal linear both;
animation-timeline: view();
}.card {
animation: reveal linear both;
animation-timeline: view();
animation-range: entry;
}The animation shorthand resets animation-range, so the range goes after it.
animation-range before animation, so the shorthand resets it to 'normal'.view() timeline.animation-range is declared after the animation shorthand, which resets it.@media (prefers-reduced-motion: reduce).The animation starts when the element begins to enter the scrollport and ends when it is halfway through the full 'cover' range.
Yes. Ranges accept lengths and percentages, like animation-range: 100px 500px on a scroll() timeline.