GitHub
Translate

Opens Google Translate in a new tab. Website translation availability varies by region. Details

DOM Interaction • Zero WebGL Contexts

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

Hover Card

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)

Pointer Move Cached rect (no reflow) Shared Ticker Ease 1 - exp(-12 * dt) CSS 3D + Glare perspective + rotateX/Y Auto Idle Sleep 0% CPU at rest

Props & Attributes

HTML AttributeJS / React PropTypeDefaultDescription
data-fx-max-tiltmaxTiltnumber12Maximum tilt angle in degrees.
data-fx-scalescalenumber1.03Hover zoom scale factor.
data-fx-perspectiveperspectivenumber900CSS 3D perspective depth in pixels.
data-fx-glareglarebooleantrueAdds dynamic radial highlight overlay.