<ray>

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).

/* Usage Example */
.moving-dot {
  /* Moves the element 100px away from its start along a 45-degree angle */
  offset-path: ray(45deg);
  offset-distance: 100px;
}
Widely available Since 2022 88% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2022.

116+
122+
16+
116+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC