timeline-trigger-activation-range-end
Limited availability68% of usersExperimental
Sets the point on a timeline where a trigger's activation range ends. Together with the start, it marks the window the timeline has to enter to turn the trigger on. A narrow window, like cover 40% to cover 60%, fires only near the middle of the screen. The default, normal, means the end of the timeline. It is a longhand of the timeline-trigger-activation-range shorthand. It works in Chrome and Edge 146 and later so far.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Firefox or Safari yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
normal- Inherited
- No
- Applies to
- all elements
- Animation type
- notAnimatable
Quick example
@keyframes pop {
from { scale: 0.8; }
}
.stat {
timeline-trigger-name: --stat;
timeline-trigger-source: view();
timeline-trigger-activation-range-start: cover 40%;
timeline-trigger-activation-range-end: cover 60%;
animation: pop 0.4s ease-out both;
animation-trigger: --stat play-forwards;
}Values
normal<length-percentage>covercontainentryexitentry-crossingexit-crossingtimeline-trigger-activation-range-end browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage68%of people can use this32% use a browser without it.
Browsers
146+
146+Mobile
146+Android