Motion path offset-path
CSS properties that move an element along an arbitrary curve instead of straight between two points.
The path is given with offset-path, usually as SVG's ordinary path syntax, and the position along it with offset-distance expressed as a percentage. Animate the latter from zero to a hundred and the element glides along the curve, and with offset-rotate: auto it turns to point in the direction of travel — the difference between moving an aeroplane and flying it. The path can also be a ray() with an angle and length, a basic shape, or a reference to a path in an SVG document. Previously this needed either a JavaScript library recomputing the position every frame, or SVG's own animateMotion, which only worked inside SVG. Broadly supported since 2022.