Liquid Metal
Generates a flowing metallic heightfield with finite-difference surface normals, Blinn-Phong specular highlights, and Fresnel rim reflections layered over your backdrop with Additive Color Blending (ACD).
Live Playground
Live WebGL2 Move Cursor for Ripples
Speed 1.00
Finish
Where to Use It
Hardware & Automotive Heroes
Brushed chrome and liquid titanium specular waves pair naturally with industrial design, audio hardware, and EV showcases.
Luxury & Fintech Vault Cards
Combine gold or silver chrome palettes with tilt-3d on VIP membership cards and metallic feature banners.
Usage (Copy & Paste)
<section
data-fx="liquid-metal"
data-fx-speed="1.0"
data-fx-colors="#18181b, #94a3b8, #38bdf8"
style="min-height: 60vh;"
>
<div style="position: relative; z-index: 1;">Chrome Surface</div>
</section>
<script src="https://unpkg.com/@votax572002/fluxfx/dist/fluxfx.min.js"></script> 'use client';
import { LiquidMetal } from '@votax572002/fluxfx/react';
export function ChromeBanner() {
return (
<LiquidMetal speed={1.0} colors={['#18181b', '#94a3b8', '#38bdf8']} style={{ minHeight: '60vh' }}>
<h1>Liquid Chrome</h1>
</LiquidMetal>
);
} import { FluxFX } from '@votax572002/fluxfx';
FluxFX.apply(el, 'liquid-metal', {
speed: 1.0,
quality: 'medium',
colors: ['#18181b', '#94a3b8', '#38bdf8'],
}); How It Works (Flowchart)
Props & Attributes
| HTML Attribute | JS / React Prop | Type | Default | Description |
|---|---|---|---|---|
data-fx-speed | speed | number | 1.0 | Fluid chrome motion speed. |
data-fx-quality | quality | 'low' | 'medium' | 'high' | 'medium' | Sets field iterations (3 / 4 / 5) and DPR. |
data-fx-colors | colors | string | string[] | ['#18181b','#94a3b8','#38bdf8'] | Base, highlight, and Fresnel tint colors. |
data-fx-bg-color | bgColor | string | '#0f172a' | Backdrop color or 'transparent'. |