syaivoalpha

Lumina

Soft, diagonal beams of light fade gently across a dark surface, creating a premium, cinematic atmosphere. A subtle grain texture overlays the scene, giving depth and a refined, tactile feel.

Preview

Usage

import { createLumina } from 'syaivo';

const effect = createLumina({
  beamColor: '#ffffff',
  beams: 5,
  angle: 35,
  intensity: 0.18,
  grain: 0.06,
});

effect.mount(document.getElementById('hero')!);

Options

OptionTypeDefaultDescription
backgroundColorstring"#0a0a0a"Background color
beamColorstring"#ffffff"Beam highlight color
beamsnumber5Number of light beams
anglenumber35Beam direction in degrees (0 = right, 90 = down)
intensitynumber0.18Maximum beam brightness (0–1)
softnessnumber0.15Beam softness — larger = more diffuse (0.05–0.5)
grainnumber0.06Grain intensity (0–1)
grainSpeednumber1Grain shimmer speed multiplier
beamSpeednumber1Beam drift speed multiplier
speednumber1Global speed multiplier
animatedbooleantrueEnable animation
respectReducedMotionbooleantrueHonor prefers-reduced-motion

Dynamic Updates

effect.update({ beams: 8, intensity: 0.3 });

Example

Introducing your product

Build something
people remember

A polished experience starts with the details. Ship interfaces that feel considered from the first pixel.

Get startedDocumentation

On this page