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.
Two values mean x then y.20% is from the left of the box. 80% is from the top.
That point sits on the path. Percentages are relative to the element’s own width and height.
50% 50% is the center. That matches the everyday center keyword.
Fine-tune hang. Use percentages when keywords are too coarse for the shape you are animating.
Edge Cases & Pitfalls
If the box looks disconnected from the path, one of these is usually why.
path
Needs an offset-path
Without offset-path, there is no line to anchor to. Set the path first, then the anchor.
size
Tiny boxes hide corner changes
On a 8px marker, top right and center look almost the same. Use a larger box while you learn.
rotate
auto rotate can confuse the demo
offset-rotate: auto tips the box with the path. Use 0deg when you only want to study the anchor point.
auto
auto follows another property
With a path, auto matches transform-origin. With no path, it follows offset-position.
slash
Shorthand needs a slash
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.