Animodi Showcase
Animodi is FluxFX's synchronized 3D showcase architecture combining a cursor-tracking WebGL2 spotlight studio cyclorama with a zero-WebGL depth-carousel foreground deck. Switching cards tweens the studio beam via Additive Color Blending (ACD) and shifts spotlight alignment for detail panels — keeping GPU and DOM load minimal.
Live FluxFX Animodi Stage
FluxFX Animodi • FluxFX Core Move Cursor • Drag / Click Card
FluxFX Aurora
Indigo & Ice Glow
FluxFX Core
Emerald Engine Stage
FluxFX Prism
Crimson Studio Rim
Navigate Cards
Curve 12°
Spotlight Intensity 1.20
Where to Use It
Flagship Product Launches
Display hardware editions, plans, or FluxFX templates with automatic spotlight color syncing and left-aligned focus zoom for spec drawers.
Interactive Lookbooks & Portfolios
Combine transparent portraits or layered case-study cards over live GPU cyclorama lighting with 0 extra WebGL contexts.
Usage (Copy & Paste)
<section
id="animodi-stage"
data-fx="spotlight"
data-fx-bg-color="#000000"
data-fx-colors="#10b981, #06b6d4, #ecfeff"
data-fx-spot-radius="0.72"
data-fx-spot-intensity="1.2"
style="position: relative; min-height: 70vh; overflow: hidden; display: grid; place-items: center;"
>
<div
id="animodi-deck"
data-fx="depth-carousel"
data-fx-active-index="1"
data-fx-spread="26"
data-fx-curve="12"
data-fx-parallax="18"
style="width: 100%; height: 340px; display: grid; place-items: center;"
>
<div data-fx-slide style="grid-area: 1 / 1;">FluxFX Aurora</div>
<div data-fx-slide style="grid-area: 1 / 1;">FluxFX Core</div>
<div data-fx-slide style="grid-area: 1 / 1;">FluxFX Prism</div>
</div>
</section>
<script src="https://unpkg.com/@votax572002/fluxfx/dist/fluxfx.min.js"></script> 'use client';
import { useState } from 'react';
import { Spotlight, DepthCarousel } from '@votax572002/fluxfx/react';
const STAGES = [
{ name: 'FluxFX Aurora', colors: ['#1e1b4b', '#4f46e5', '#a5f3fc'] },
{ name: 'FluxFX Core', colors: ['#064e3b', '#10b981', '#ecfdf5'] },
{ name: 'FluxFX Prism', colors: ['#3b0764', '#ec4899', '#fdf2f8'] },
];
export function FluxAnimodiStage() {
const [index, setIndex] = useState(1);
const [focused, setFocused] = useState(false);
return (
<Spotlight
bgColor="#000000"
colors={STAGES[index].colors}
spotPosition={focused ? 'left' : 'center'}
spotRadius={0.72}
style={{ minHeight: '70vh', display: 'grid', placeItems: 'center' }}
>
<DepthCarousel
activeIndex={index}
focused={focused}
onSlideChange={(d) => { setIndex(d.index); setFocused(d.focused); }}
style={{ width: '100%', height: 340, display: 'grid', placeItems: 'center' }}
>
{STAGES.map((s) => (
<div key={s.name} data-fx-slide style={{ gridArea: '1 / 1' }}>{s.name}</div>
))}
</DepthCarousel>
</Spotlight>
);
} import { FluxFX } from '@votax572002/fluxfx';
const stage = document.getElementById('animodi-stage')!;
const deck = document.getElementById('animodi-deck')!;
FluxFX.apply(stage, 'spotlight', {
bgColor: '#000000',
colors: ['#064e3b', '#10b981', '#ecfdf5'],
spotPosition: 'center',
spotRadius: 0.72,
});
FluxFX.apply(deck, 'depth-carousel', {
activeIndex: 1,
spread: 26,
curve: 12,
parallax: 18,
onSlideChange: ({ index, focused }) => {
const palettes = [
['#1e1b4b', '#4f46e5', '#a5f3fc'],
['#064e3b', '#10b981', '#ecfdf5'],
['#3b0764', '#ec4899', '#fdf2f8'],
];
FluxFX.update(stage, 'spotlight', {
colors: palettes[index],
spotPosition: focused ? 'left' : 'center',
});
},
}); How It Works (Flowchart)
Design & Engine Quality Checks Covered
| Check | Guarantee in FluxFX |
|---|---|
| Single WebGL2 Context | Only the background spotlight uses 1 WebGL context; foreground cards run cleanly in DOM CSS 3D (respecting maxActiveContexts). |
| Offscreen Worker & 30↔60 FPS Pacing | Backdrop shader runs in a Web Worker at 30 FPS idle, boosts to 60 FPS for 1800ms on cursor move, and drops back smoothly on leave. |
| Zero-CPU Idle Sleep | DepthCarousel detaches from CentralizedTicker once card springs settle (isIdle() === true), using 0% CPU until interacted with again. |
| Hot Palette Tweening (ACD) | Switching slides calls FluxFX.update() without tearing down the WebGL context, preserving anti-banded backdrop transitions. |
| Reduced Motion & Touch Drag | Supports horizontal touch/mouse drag, keyboard/button navigation, and renders static positions when prefers-reduced-motion: reduce is set. |