A button with liquid chrome clipped to its rounded shape and an optional magnetic pointer response, built with typed props instead of data attributes.
Made by AxylChrome button with live shader and magnetic settings.
Installation
File Structure
Usage
The chrome is rendered once into an off-screen WebGL2 surface, then copied into a canvas clipped to the button's border radius. Every shader parameter is a typed prop; no data-* attributes are needed. magnetic controls how far the button follows the pointer and can be set to 0 to turn that off. Reduced-motion users get a static surface with no magnetic movement.
For the full-bleed version of the same shader, see Liquid Metal Background.
Props
| Prop | Type | Default |
|---|---|---|
repetition? | number | 1.7 |
softness? | number | 0.1 |
distortion? | number | 0.1 |
contour? | number | 0.5 |
angle? | number | 80 |
shiftRed? | number | 0.35 |
shiftBlue? | number | 0.35 |
colorBack? | string | "#00000000" |
colorTint? | string | "#ffffffff" |
magnetic? | number | 0.15 |
className? | string | - |
ref? | Ref<HTMLButtonElement> | - |
Credits
Inspired by Adam Perlis. Reimplemented for React, Motion and WebGL2.
Stagger Button
A shadcn button that staggers per character or slides the whole label on hover. A React component.
Accordion
An animated FAQ accordion with expandable panels, powered by Motion. A React component for shadcn/ui.
Built by Axyl. A motion-first component registry for React.
Last updated: 12/1/2026