Moving border

surfacesFreeMIT

A frame with a light running round its border, in plain CSS. The light stands still under reduced motion. `variant="iridescent"` lights the whole ring with a thin-film band of hues around --primary.

npx shadcn@latest add https://mikkelmanniche.dk/lab/r/moving-border.json
Width

Preview

The preview could not load.

Live demo in the dark theme.

Details

Dependencies

Files

  • moving-border.tsx