animation-trigger
Limited availability70% of usersExperimental
An experimental property that allows you to define exactly when an animation should start playing based on conditions like visibility in the viewport. It's part of the effort to make scroll and view-driven effects more declarative.
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
none- Inherited
- No
- Applies to
- all elements
- Animation type
- notAnimatable
Quick example
.box {
/* Experimental: Animation only plays when it enters the viewport */
animation-trigger: view();
}Values
noneanimation-trigger 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