GitHub
Translate

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

WebGL2 Shader • GLSL

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)

Cursor Ripple Wave sin(d*8 - t*3) * exp(-d) Trig Heightfield 3–5 sin/cos iterations Surface Normals h, hx, hy finite diff Chrome Shading Specular + Fresnel

Props & Attributes

HTML AttributeJS / React PropTypeDefaultDescription
data-fx-speedspeednumber1.0Fluid chrome motion speed.
data-fx-qualityquality'low' | 'medium' | 'high''medium'Sets field iterations (3 / 4 / 5) and DPR.
data-fx-colorscolorsstring | string[]['#18181b','#94a3b8','#38bdf8']Base, highlight, and Fresnel tint colors.
data-fx-bg-colorbgColorstring'#0f172a'Backdrop color or 'transparent'.