Tilt 3D
Adds responsive CSS 3D perspective tilt and an optional radial glare overlay using cached bounding boxes and exponential damping. Automatically sleeps at 0% CPU once settled.
Live Playground
3D Perspective Card
Uses zero WebGL contexts and stacks cleanly on top of any WebGL backdrop.
Max Tilt 14°
Scale 1.04
Glare Overlay
Where to Use It
Pricing Tiers & Bento Grids
Attach directly to featured cards or dashboard KPIs with zero WebGL overhead across dozens of cards on one page.
Collectibles & Media Previews
Enable glare on trading cards, posters, or album art thumbnails for tactile specular sheen.
Usage (Copy & Paste)
<div
data-fx="tilt-3d"
data-fx-max-tilt="12"
data-fx-scale="1.03"
data-fx-perspective="900"
data-fx-glare="true"
style="padding: 2rem; border-radius: 14px;"
>
<h3>3D Interactive Card</h3>
</div>
<script src="https://unpkg.com/@votax572002/fluxfx/dist/fluxfx.min.js"></script> 'use client';
import { TiltCard } from '@votax572002/fluxfx/react';
export function FeatureCard() {
return (
<TiltCard maxTilt={12} scale={1.03} perspective={900} glare>
<h3>3D Interactive Card</h3>
</TiltCard>
);
} import { FluxFX } from '@votax572002/fluxfx';
FluxFX.apply(el, 'tilt-3d', {
maxTilt: 12,
scale: 1.03,
perspective: 900,
glare: true,
}); How It Works (Flowchart)
Props & Attributes
| HTML Attribute | JS / React Prop | Type | Default | Description |
|---|---|---|---|---|
data-fx-max-tilt | maxTilt | number | 12 | Maximum tilt angle in degrees. |
data-fx-scale | scale | number | 1.03 | Hover zoom scale factor. |
data-fx-perspective | perspective | number | 900 | CSS 3D perspective depth in pixels. |
data-fx-glare | glare | boolean | true | Adds dynamic radial highlight overlay. |