offset-path
Widely availableSince 202297% of users
Defines the actual path an element should follow during a motion animation. You can use SVG path strings, shapes (like circles), or даже browser curves.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since March 2022. Widely available since September 2024.
Newer parts of offset-path
<basic-shape>Baseline Sept 2024border-boxBaseline Sept 2024content-boxBaseline Sept 2024fill-boxBaseline Sept 2024noneBaseline Sept 2024padding-boxBaseline Sept 2024stroke-boxBaseline Sept 2024view-boxBaseline Sept 2024
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
none- Inherited
- No
- Applies to
- transformable elements
- Animation type
- byComputedValueType
Quick example
.flying-bird {
/* Tells the element to follow a curved path */
offset-path: path('M 10 10 C 20 20, 40 20, 50 10');
}Values
noneoffset-path browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2022.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
55+
72+
15.4+
79+Mobile
55+Android
79+Android
15.4+iOS