Ferrofluid
Magnetic
Text
Type
Colour
Ground
Motion
About this effect
Ferrofluid pours your words in a magnetic liquid, black and glossy as ink, lit by two coloured studio lights. Bring the pointer over it and it acts as a magnet: the liquid near it heaves up into a field of sharp cones packed in a honeycomb, tallest right under the magnet and leaning toward it, each one catching both lights along its sides. Move away and they sink back into a smooth, rounded pool, a beat behind, the way the real liquid does. Left alone, a hidden magnet drifts along under the words.
The surface is a height field: a rounded meniscus at every edge of the letters plus one cone at every point of a honeycomb whose height follows the magnet, each point easing to its new height. It is lit as a glossy black liquid (dark where it faces you, bright toward its edges and sides), and its reflections are the two lights. It is drawn on a canvas from the heading's own letters (font, size and line breaks are the page's), and the heading keeps your words for screen readers and search.
Pull sets how strong the magnet is, and how far its spikes reach. Very heavy letters give the liquid room to stand up; it suits tech, sound, science and anything a little uncanny.
- Formats
- React, HTML
- No dependencies
- Built with
- Canvas, over real text
- Default font Archivo
- Plays
- Loop, Hover
- Reduced motion
- Respected
- Shows the finished frame
Accessibility. One real heading, read once; the liquid is drawn on a canvas hidden from screen readers. Under reduced motion nothing moves: one frame is shown with a few spikes standing under a still magnet.
Also known as ferrofluid text, magnetic liquid text, spiky text effect, magnet text animation, glossy black liquid text, interactive liquid text.
Use it in anything you build, client work included, no credit needed. Don’t republish or resell the effect itself.