Spotlight
Renders a volumetric studio spotlight halo with Additive Color Blending (ACD), subtle cyclorama floor shadow, and anti-banding dither grain that tracks your cursor smoothly.
Live Playground
Studio Backdrop Move Cursor to Shift Light
Spot Radius 0.65
Intensity 1.10
Position
Mood Palette
Where to Use It
Lookbooks & Character Stages
Pair behind depth-carousel so the studio light shifts smoothly as visitors browse characters or outfits.
Product Launches
Shift spotPosition to 'left' when opening a right-hand spec panel or checkout drawer.
Usage (Copy & Paste)
<section
data-fx="spotlight"
data-fx-colors="#121316, #3f4652, #f8fafc"
data-fx-spot-radius="0.65"
data-fx-spot-intensity="1.1"
data-fx-spot-position="center"
style="min-height: 70vh;"
>
<div style="position: relative; z-index: 1;">Studio Lookbook</div>
</section>
<script src="https://unpkg.com/@votax572002/fluxfx/dist/fluxfx.min.js"></script> 'use client';
import { Spotlight } from '@votax572002/fluxfx/react';
export function StudioStage() {
return (
<Spotlight
colors={['#121316', '#3f4652', '#f8fafc']}
spotRadius={0.65}
spotIntensity={1.1}
spotPosition="center"
style={{ minHeight: '70vh' }}
>
<h1>Studio Showcase</h1>
</Spotlight>
);
} import { FluxFX } from '@votax572002/fluxfx';
FluxFX.apply(el, 'spotlight', {
colors: ['#121316', '#3f4652', '#f8fafc'],
spotRadius: 0.65,
spotIntensity: 1.1,
spotPosition: 'center', // 'center' | 'left' | 'right' | [x, y]
}); How It Works (Flowchart)
Props & Attributes
| HTML Attribute | JS / React Prop | Type | Default | Description |
|---|---|---|---|---|
data-fx-colors | colors | string | string[] | ['#14161a','#4b5563','#f8fafc'] | [baseTint, midWash, coreHalo] studio colors. |
data-fx-bg-color | bgColor | string | Auto theme | Explicit solid backdrop color or 'transparent'. |
data-fx-spot-radius | spotRadius | number | 0.62 | Spotlight glow radius (0.18–1.45). |
data-fx-spot-intensity | spotIntensity | number | 1.0 | Spotlight brightness multiplier (0.0–2.5). |
data-fx-spot-position | spotPosition | 'center' | 'left' | 'right' | [x, y] | 'center' | Center origin of the studio spotlight. |