Motion Blocks

Canvas

Specular Band

Animated specular band effect with lens distortion and hue-shifted color palettes. Creates flowing, organic light bands with adaptive blending for different background brightness levels.

  • lit Preview of https://lit.devLitSimple. Fast. Web Components.
  • ogl Preview of https://github.com/oframe/oglOGLMinimal WebGL framework.

Preview

Animated specular band effect with lens distortion — flowing organic light bands with hue-shifted color palettes and adaptive brightness blending.
Attributes

Installation

pnpm dlx motion-blocks add specular-band

Usage

---import "@/components/motion-blocks/specular-band-element.ts";--- <motion-specular-band  color="#FF6900"  background-color="#17181A"  speed={1.0}  distortion={0.2}  hue-shift={30}  intensity={1.0}  class="w-full h-[500px]"/>

API Reference

Attribute Type Default
color Base color of the specular bands. string #FF6900
background-color Color of the background. string #17181A
speed Animation speed multiplier. number 1.0
distortion Lens distortion intensity. number 0.2
hue-shift Amount of hue shift for secondary bands (in degrees). number 30.0
intensity Global intensity/brightness of the effect. number 1.0