Skip to content
PixiKit

Liquid Metal

Paints a logo or a word in liquid chrome: reflection bands flow across the shape, bend around its edges, split into rainbow fringes and tilt with the pointer.

pixikit.com/docs/effects/liquid-metal

Customize

Font weight800
Color
Background color
Density2.0
Softness0.10
Dispersion0.30
Distortion0.07
Edge bend0.60
Angle70deg
Speed1.00
Scale0.60
Rotation0deg
Mouse tilt0.50
Light mode
Intro
Paused
Dpr

Props

22
NameTypeDefaultDescription
imageSrcstringNoneAddress of the logo or image to paint; SVGs work best and transparent pixels are left empty.
textstringNoneText to paint instead of an image; it takes priority over imageSrc.
fontFamilystring"system-ui, sans-serif"Font used for text.
fontWeightnumber800Font weight used for text.
colorstring"#ffffff"Tint of the metal; white keeps it chrome, warm tones turn it gold or copper.
backgroundColorstring"transparent"Colour behind the shape; the canvas is transparent by default.
densitynumber2How many reflection bands run across the shape.
softnessnumber0.1Softness of the reflection edges, from 0 for crisp chrome to 1 for brushed metal.
dispersionnumber0.3Rainbow fringes where the reflections bend, 0 to 1.
distortionnumber0.07How much the reflections ripple as they flow, 0 to 1.
edgeBendnumber0.6How strongly the reflections bend around the edges of the shape, 0 to 1.
anglenumber70Direction the reflections flow in, in degrees.
speednumber1Speed of the flow; 0 freezes it.
scalenumber0.6Size of the shape inside the canvas.
rotationnumber0Rotation of the shape, in degrees.
mouseTiltnumber0.5How much the reflections shift as the pointer moves, as if tilting the metal.
lightModebooleanfalseAdds a soft dark rim and dims the brightest highlights so the shape reads on light pages.
introbooleantruePours the metal in from the outline on mount.
pausedbooleanfalseFreezes the animation.
dprnumberNoneThe highest device pixel ratio drawn; by default it renders at 2x or more for clean edges.
classNamestringNone
styleCSSPropertiesNone

Related