Developer

Runs in your browser. No file uploads for processing.

CSS Motion Path Generator & Offset-Path Preview

Preview an SVG path as CSS motion. Scrub a marker, set start and end distances, choose orientation, and export keyframes with a reduced-motion fallback.

Loading tool...

How to turn SVG path data into CSS motion

  1. Paste one path’s d value

    Try the right-angle example M20 20 H80 V100. Its length is 140 pixels, and its halfway point is at X 80, Y 30.

  2. Scrub the distance and choose rotation

    Restrict the range, try tangent or fixed rotation, or play the movement once. Scrubbing does not start playback.

  3. Copy the CSS into a positioned stage

    The output includes offset-path, centered anchoring, linear keyframes, and a static end position for reduced motion.

Use cases

  • Fine-tune a short route for an icon or status indicator.
  • Check where a CSS marker lands before integrating an SVG path into an interface.

Limits and privacy

  • One continuous supported path up to 6,000 characters and 500 commands. No full SVG files, CSS URLs, or disconnected subpaths.
  • Preview is scaled to fit; copied CSS preserves the original pixel coordinates, uses a linear one-shot animation, and needs a modern browser with CSS motion paths.

The tool processes inputs in your browser. Account features and usage analytics are separate.

Frequently asked questions

How can I inspect the path’s segments before animating?

Use SVG Path Clinic to inspect commands, length and bounds without making an animation.

Do I paste an SVG file or only its path data?

Paste the d value from one SVG path. The tool does not load SVG files, HTML, CSS, images, or remote URLs.

What does offset-distance measure?

It is a percentage of the path’s length. In the built-in right-angle example, 50% is at X 80, Y 30 because the vertical segment is longer than the horizontal one.

Does it automatically animate the preview?

No. The drawing starts still. You can use the progress slider or play the preview once explicitly.

What happens if Reduce Motion is enabled?

The in-page preview disables playback and still lets you scrub manually. The copied CSS disables animation and shows the end position.

Why is the preview a different size from the CSS?

The drawing is fitted to the panel. In the generated CSS the path coordinates remain fixed CSS pixels relative to the stage origin.

Related tools