CSS offset Property
Description
The offset property is a shorthand that groups an element’s motion-path settings so you can control movement and orientation with a single declaration. It ties together the underlying motion subproperties that determine the path an element follows, how far along that path the element sits, and whether and how it rotates to follow the direction of travel. Conceptually, using offset lets authors express a coherent motion intent — where an object should move and how it should be oriented while moving — without repeating separate declarations for each facet of the motion.
Under the hood the shorthand maps to the motion primitives such as offset-path, offset-distance and offset-rotate, so it is a convenience for composing those related concerns. Because the motion it defines is a visual transform, it does not change the document flow or the element’s layout space: the element’s position in the normal flow remains as before, while the rendered box is painted at the transformed location. That separation mirrors how transform operations behave — visual movement and rotation without affecting surrounding layout.
Practical use of offset is common when you want to animate or transition an element along a path; it interoperates with animation systems and compositing so changes can be GPU-accelerated and smoothly interpolated. You can drive changes to the shorthand (and therefore the underlying motion) through timeline-driven techniques such as animation or property animations like transition, and you should be mindful that interpolating path and rotation values can introduce non-intuitive intermediate poses if the path geometry or rotation rules vary abruptly. Finally, remember that because offset centralizes motion behavior, it makes it easier to reason about an element’s movement in a single place — but also means changing the shorthand will alter all linked motion characteristics at once.
Definition
- Initial value
- See individual properties
- Applies to
- transformable elements
- Inherited
- no
- Computed value
- See individual properties
- Animatable
- See individual properties
- JavaScript syntax
- object.style.offset
Interactive Demo
Syntax
offset: [ <offset-position>? [ <offset-path> [ <offset-distance> || <offset-rotate> ]? ]? ]! [ / <offset-anchor> ]?
Values
- <offset-position>Specifies the initial position of an element along a path.
- <offset-path>Specifies the path an element is animated along.
- <offset-distance>Specifies the distance from the start of the path defined by offset-path.
- <offset-rotate>Specifies rotation of an element as it is animated along a path
- <offset-anchor>Specifies the point on an element that is fixed to the path it is animated along.
Example
Browser Support
The following information will show you the current browser support for the CSS offset property. Hover over a browser icon to see the version that first introduced support for this CSS property.
This property is supported by all modern browsers.
Desktop
Tablets & Mobile
Last updated by CSSPortal on: 1st January 2026
