Add motion without building a visual effects engine.
FluxFX provides production-oriented WebGL shaders and DOM interactions for HTML, React, Next.js, and Astro. It includes adaptive resolution, viewport pausing, WebGL context budgeting, automatic cleanup, performance controls, and reduced-motion support. It can present AI-generated visual assets, but does not generate content or call AI models.
For coding agents: LLM documentation index · full documentation context · FluxFX integration skill.
Choose your integration
Use the same effect engine from your preferred framework or deployment environment.
HTML or CDN
Fastest setup for static websites, landing pages, WordPress, demos, and vanilla HTML projects.
React or Next.js
Typed components, hooks, props, client boundaries, and React-safe cleanup.
Astro
Initialize effects from client scripts and preserve them across View Transitions and page navigation.
All 11 effects
Compare GPU-powered shaders with lightweight DOM interactions and choose the right effect for the page.
What is FluxFX?
FluxFX is a lightweight plugin engine that manages 8 WebGL2 GPU effects:
auroraliquid-metalspotlightfluidinkaetheriaprism-3dbrush-reveal
It also includes 3 DOM interactions:
tilt-3dmagneticdepth-carousel
All effects share one engine lifecycle. WebGL backdrops can be combined with palettes and Additive Color Blending to create consistent visual surfaces.
How FluxFX elevates web design
FluxFX is built for developers and designers who need expressive visual behavior without writing an entire rendering system.
Living depth
Combine spotlight, aurora,
depth-carousel, and tilt-3d to create
editorial depth instead of a flat decorative background.
Controlled color
Use theme-aware luminance detection, transparent surfaces, and Additive Color Blending while keeping headlines and interface content readable.
Tactile interfaces
Add magnetic pull to primary actions or pointer tilt to cards without loading a separate 3D or interaction library.
Framework-neutral setup
Use HTML attributes for static sites or typed components and hooks for React and Next.js applications.
Production performance and safety
The engine protects the page with lifecycle and resource-management features that would otherwise need to be implemented per effect.
No main-thread rendering loop
Supported WebGL effects can render inside an
OffscreenCanvas worker so interface interactions and
scrolling remain responsive.
Four-tier performance protection
DynamicResolution and
PerformanceGuard can lower DPR, frame rate,
shader resolution, and FBO size on slower devices.
WebGL context budgeting
Active contexts are limited to reduce browser crashes. Off-screen canvases can be replaced by lightweight CSS fallbacks.
Lifecycle-aware cleanup
Effects pause outside the viewport, respect reduced-motion settings, support React cleanup, and can be updated without losing contexts.
Quick start
Choose your framework below. The HTML and CDN option requires no build step.
<section
data-fx="aurora"
data-fx-speed="1.0"
data-fx-quality="high"
style="min-height: 60vh;"
>
<h1>Hello FluxFX</h1>
</section>
<script src="https://unpkg.com/@votax572002/fluxfx/dist/fluxfx.min.js"></script> 'use client';
import {
Aurora,
TiltCard,
Magnetic,
} from '@votax572002/fluxfx/react';
export function Hero() {
return (
<Aurora
style={{
minHeight: '60vh',
padding: '3rem',
}}
>
<TiltCard maxTilt={10}>
<h2>Interactive Card</h2>
</TiltCard>
<Magnetic strength={0.35}>
<button type="button">
Get Started
</button>
</Magnetic>
</Aurora>
);
} 'use client';
import {
Aurora,
TiltCard,
} from '@votax572002/fluxfx/react';
export default function HomePage() {
return (
<main>
<Aurora
device="desktop"
style={{
minHeight: '65vh',
padding: '3rem',
}}
>
<TiltCard
maxTilt={10}
disableOnMobile
>
<h1>Next.js + FluxFX</h1>
</TiltCard>
</Aurora>
</main>
);
} <!-- src/pages/index.astro -->
<section
data-fx="aurora"
data-fx-device="all"
data-fx-quality="high"
style="min-height: 60vh;"
>
<h1>Astro + FluxFX</h1>
</section>
<script>
import { FluxFX } from '@votax572002/fluxfx';
function initializeFluxFX() {
FluxFX.init();
}
initializeFluxFX();
document.addEventListener('astro:page-load', initializeFluxFX);
</script> import { FluxFX } from '@votax572002/fluxfx';
// Initialize all elements containing [data-fx]
FluxFX.init();
// Or mount an effect imperatively
const destroy = FluxFX.apply(
document.querySelector('#hero'),
'prism-3d',
{
shape: 'torus',
quality: 'high',
colors: [
'#6366f1',
'#06b6d4',
'#f472b6',
],
}
);
// Remove the effect when the component unmounts
destroy(); Explore all effects
Every effect includes a live playground, implementation examples, options, use cases, performance guidance, and troubleshooting notes.
Aurora
Atmospheric gradient ribbons for technology, SaaS, AI, and creative hero sections.
Prism 3D
Raymarched 3D sculptures for product showcases and premium visual identities.
Brush Reveal
Interactive before-and-after image reveal for portraits, products, and transformation stories.
Tilt 3D
Lightweight pointer depth for cards, pricing panels, portfolios, and feature blocks.
Browse the complete Effects Directory →