<ray>
Widely availableSince 202494% of users
A function used in the motion path module to define a path that starts at a single point and shoots out in a specific direction (like a ray of light).
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since January 2024. Widely available since July 2026.
See how modern your own CSS is.Check your CSS →
Quick example
.moving-dot {
/* Moves the element 100px away from its start along a 45-degree angle */
offset-path: ray(45deg);
offset-distance: 100px;
}<ray> browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2024.Safe to use without fallbacks.
Usage94%of people can use this6% use a browser without it.
Browsers
116+
122+
16+
116+Mobile
116+Android
122+Android
16+iOS