motion-liquid
Applies an animated SVG displacement filter to text, giving it a living, fluid quality — like ink in water or hot air shimmer. No WebGL required.
Preview
Import
Usage
Static content
Write the text as a child. The browser shows it as plain text before the element is defined, so the page never paints an empty gap while the library loads.
Dynamic content
Use the text attribute when text changes at runtime. Setting the property restarts the animation automatically.
If both are present, the attribute wins and the child text stays as the pre-upgrade fallback.
Intensity
Speed
Pause on hover
Add
How it works
An SVG
Properties
| Attribute | Property | Type | Default | Description |
|---|---|---|---|---|
| | | string | — | Text to render with the liquid effect. Falls back to the child text when unset |
| | | number | 10 | Maximum displacement in px |
| | | number | 2 | How fast the fluid motion evolves |
| | | boolean | false | Freeze motion on mouseenter, resume on mouseleave |
JavaScript API
Control the liquid programmatically with play(), pause(), finish(), and cancel().
Accessibility
When