timeline-trigger-active-range-start
Limited availability68% of usersExperimental
Sets the point where a trigger's active range begins. If the timeline moves back before it, for example when you scroll back up, the trigger turns off. Setting it earlier than the activation start keeps an effect on until the element has fully left. The default, auto, copies the start of the activation range. It is a longhand of the timeline-trigger-active-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
auto- Inherited
- No
- Applies to
- all elements
- Animation type
- notAnimatable
Quick example
@keyframes fade-in {
from { opacity: 0; }
}
.note {
timeline-trigger-name: --note;
timeline-trigger-source: view();
timeline-trigger-activation-range: entry 100% exit 0%;
timeline-trigger-active-range-start: cover 0%;
animation: fade-in 0.4s ease-out both;
animation-trigger: --note play-forwards play-backwards;
}Values
autonormal<length-percentage>covercontainentryexitentry-crossingexit-crossingtimeline-trigger-active-range-start 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