AI CSS Animations

Premium

Prism Dispersion

A white beam swings slowly into a glass prism and leaves as a fan of hue-shifted bands that widens and narrows with the beam's angle, landing on a screen as a soft spectrum.

Also known as: prism rainbow animation css, light spectrum loader, dispersion prism css, refraction beam animation.

Premium

Unlock the HTML and CSS

Everything you see above is live. Basic and Pro include every premium piece, with the HTML and CSS ready to copy, plus Motions in Claude Code on Pro.

Customizing this loader

  • Color: set --ldr-color on the element or a parent. Currently previewing #3b82f6.
  • Size: set --ldr-size. Every dimension in the snippet is derived from it. Currently previewing 64px.
  • Speed: change the duration on the animation shorthand. Delays on the children are relative, so they keep their rhythm.
  • Accessibility: the root carries role="status" and an aria-label so screen readers announce the wait. The reduced-motion rule at the end slows the animation for users who asked for less motion.

Similar loaders