The offset-anchor property picks which point inside an element sits on an offset-path. Only that point rides the path; the rest of the box hangs around it.
The initial value is auto, which usually matches transform-origin. If there is no path, auto follows offset-position instead. It is not inherited. You can also set it in the offset shorthand after a slash.
Baseline · Widely available.
Not deprecated and not experimental. Safe in current browsers since August 2023. Internet Explorer has no support.
In offset, write the anchor after /: offset: path("…") 50% 0deg / top right.
Compatibility
Browser Support
offset-anchor is a browser CSS property for Motion Path. Node.js, Deno, and Bun do not apply it.
✓ Baseline · Widely available since 2023
offset-anchor
Chrome 116+, Firefox 72+, Safari 16+, Edge 116+. Internet Explorer has no native support.
93%Modern browser support
Google Chrome116+ · Desktop & Mobile
Full support
Mozilla Firefox72+ · Desktop & Mobile
Full support
Apple Safari16+ · macOS & iOS
Full support
Microsoft Edge116+ · Chromium
Full support
Opera102+ · Modern versions
Full support
Samsung Internet23+ · Android
Full support
Internet ExplorerNo support
None
offset-anchorWidely supported
Bottom line: Safe for modern motion-path demos. Baseline since August 2023. Pair with offset-path and a clear box size so corner anchors are easy to see.
Remember
Key Takeaways
Role: choose which point inside the element sits on the motion path.
Default:auto — usually matches transform-origin. Not inherited.
Needs a path: set offset-path first, then the anchor.
Values: keywords, percentages, or lengths — same idea as background-position.
One line:offset-anchor glues one point of the box to the path; the rest of the box hangs around that point.
Frequently Asked Questions
It picks which point inside an element sits on the offset-path. For example, top right pins that corner to the path while the rest of the box hangs off it.
auto. That usually matches the element's transform-origin. If offset-path is none, auto follows offset-position instead.
transform-origin is the pivot for transforms. offset-anchor is the point glued to a motion path. With auto, offset-anchor often uses the same point as transform-origin.
The path touches only the anchor point. If you set top left, that corner rides the path and the rest of the box sits below and to the right of the line.
Yes. Without a path, there is nowhere to anchor. Pair offset-anchor with offset-path, then place or animate offset-distance.
It is Baseline and widely available since August 2023: Chrome 116+, Firefox 72+, Safari 16+, and Edge 116+. Internet Explorer has no support. It is a browser CSS property, not a Node.js feature.