timeline-trigger-activation-range
Limited availability70% of usersExperimental
Sets the stretch of a timeline that turns a timeline trigger on, as a start and an end in one value. When the timeline enters that stretch, the trigger fires the action named in animation-trigger. It is the shorthand for timeline-trigger-activation-range-start and timeline-trigger-activation-range-end, and it uses the same syntax as animation-range. The timeline-trigger shorthand can set it too. 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
See individual properties- Inherited
- No
- Applies to
- all elements
Quick example
@keyframes fade-up {
from { opacity: 0; translate: 0 2rem; }
}
.card {
timeline-trigger-name: --card;
timeline-trigger-source: view();
timeline-trigger-activation-range: contain 0% contain 100%;
animation: fade-up 0.5s ease-out both;
animation-trigger: --card play-forwards;
}Values
timeline-trigger-activation-range-starttimeline-trigger-activation-range-endtimeline-trigger-activation-range 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.
Usage70%of people can use this30% use a browser without it.
Browsers
146+
146+Mobile
146+Android