Hero Templates

Eclipse Flare

A total eclipse under liquid-glass copy: a streamered corona, a diamond-ring flare on the breath, god-rays marched through drifting cirrus in one jittered pass.

Install

bun add ogl

Then copy 2 files into your project:

  • components/registry/eclipse-flare/eclipse-flare.tsx
  • hooks/use-animation-loop.ts

Props

PropTypeDefaultDescription
coreColorstring (hex)"#f6e3b4"The light burning behind the disc.
rimColorstring (hex)"#e8b96a"Edge light grazing the eclipse rim.
backgroundColorstring (hex)"#060409"The dark the rays cut through.
discSizenumber0.28Occluder radius, as a fraction of the frame.
rayIntensitynumber1God-ray strength past the silhouette.
breathenumber0.6How deeply the corona swells and the diamond ring flares.
speednumber1Global clock rate for the breathing.
quality"16" | "28" | "48""28"Scatter sample count per pixel — the jitter hides the banding between steps.
parallaxbooleantrueThe eclipse leans toward the pointer, easing back on leave.

What It Demonstrates

Loop
An animation that repeats, a set number of times or infinitely.
Pulse
A gentle repeating scale or opacity change to draw attention.
Hover effect
Visual change when the cursor moves over an element.
Reduced motion
Respecting the user's prefers-reduced-motion setting by toning down or removing motion.
Hardware acceleration
Animating transform and opacity lets the GPU keep motion smooth.

Related Components

Appears In