Liquid Chrome
A premium fluid liquid metal shader background effect with interactive mouse distortion.
Installation#
pnpm dlx shadcn@latest add @davinciui/liquid-chromeUsage#
API Reference#
| Prop | Type | Default |
|---|---|---|
baseColorBase RGB color tint. Use values 0.0 - 1.0. | [number, number, number] | [0.1, 0.1, 0.1] |
speedAnimation speed multiplier. | number | 1.0 |
amplitudeDetail level and distortion of the fluid waves. | number | 0.6 |
interactiveEnables mouse distortion if true. | boolean | true |
classNameAdditional CSS classes for styling. | string | — |
Accessibility#
A bare canvas with no role, accessible name, or aria-hidden marker, so screen readers encounter an unlabeled canvas. There are no focusable controls, and mouse distortion is pointer-only.
Motion#
A continuous WebGL shader runs on requestAnimationFrame; speed scales elapsed time and amplitude controls warp detail, while pointer movement offsets distortion when interactive. There is no prefers-reduced-motion detection, so the shader keeps animating.
Known constraints#
- Requires WebGL. If the context or shader compilation fails, the component logs an error and renders no effect.
- There is no CSS-only fallback, so pair it with a background color or image on the host.
- The canvas is decorative and should not be the only content in the section.
View source
Keep in mind
Need a custom component?
I build bespoke UI components & websites tailored to your brand.

