CSS offset-anchor Property

❮ Previous Reference Next ❯

Example

.offset-anchor1 {
  offset-anchor: auto;
  background: cyan;
}

.offset-anchor2 {
  offset-anchor: right top;
  background: purple;
}

.offset-anchor3 {
  offset-anchor: left bottom;
  background: magenta;
}

Meaning:

The offset-anchor CSS property specifies the point inside the box of an element traveling along an offset-path that is actually moving along the path.

Default value:auto
Inherited:No
Animatable:Yes
Version:CSS3
JavaScript syntax:
object.style.offsetAnchor="auto|position|initial|inherit|revert|revert-layer|unset";



Standard Syntax

offset-anchor: auto|position|initial|inherit|revert|revert-layer|unset;



Browser Support




Status







Property Values

The following table describes the values of this property:

Value Description
auto offset-anchor is given the same value as the element's transform-origin, unless offset-path is none, in which case it takes its value from offset-position.
position A position defines an x/y coordinate, to place an item relative to the edges of an element's box.
initial Sets this property to its default value.
inherit If specified, the associated element takes the computed value of its parent element animation-delay property.
revert Reverts the cascaded value of the property from its current value to the value the property
revert-layer Rollback styles to the ones specified in previous cascade layers.
unset Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not.



Default CSS Property Values

selectors {
  offset-anchor: auto;
}
❮ Previous Reference Next ❯