EdgeBeam

Light bleeding in from a pill's edges near a head that travels round it — the composer's beam, drawn so the compositor runs it alone.

On a pill

The studio's glows (the composer's) at its strength. A turn takes 3.5s.

Book, move, or ask

How it moves

A square window, wider than the pill's diagonal, turns with a conic mask on it; the glows inside turn back the other way, so they hold still and only the window moves. Two rotations: nothing is restyled or repainted per frame, where animating the mask's angle (a custom property) restyled the pill every frame.

Guidelines

  • Glows hug the edges: soft spots on an edge, none in the middle.
  • Off under reduced motion: the wearer leaves it out.
  • One or two on screen; each is two layers the size of its pill.

API reference

PropTypeDefaultDescription
glowsstring—The light: CSS backgrounds, usually radial gradients on the edges (studioGlows()).
opacitynumber—How strongly it shows (the studio's: STUDIO_GLOW).
radiusnumber18The pill's corner radius, px.
classNamestring—Sizes or places the wrapper.