3D & WebGLNew

Liquid Metal

A flowing chrome surface in WebGL. It shimmers on its own and follows the cursor. Can also fill text.

Customize

tint

Based on Liquid Metal (MIT license) · Terms of use

More in Pro

View all

Props

9 properties
PropertyTypeDefaultDescription
variant'chrome' | 'mercury' | 'gold' | 'oil'"chrome"Surface material.
distortionnumber1Wave strength. 0 is a nearly flat sheet, 2 is molten.
speednumber1Flow speed.
pointerInfluencebooleantrueThe cursor pushes the metal.
maskTextbooleanfalseFill only the text inside with metal.
pausedbooleanfalseFreeze on the current frame.
childrenReactNode—Content over the metal, or text to fill.
tintstring"#ffffff"Colour the metal is tinted with, like anodised metal. White keeps the variant as is.
classNamestring—Classes for the wrapper.

Dependencies

3 required packages

npm install motion clsx tailwind-merge

Related components

View all