Afloat
Stay afloat
Text
Type
Colour
Ground
Motion
About this effect
Afloat sets your words adrift. A line of water runs through the bottom of the letters, and they float in it like toys in a bath: each one bobs and tilts as the waves pass under it, rising on a crest and dipping into a trough a moment after its neighbour. Below the surface their lower parts are tinted by the water and bent by it, shifting a little sideways as the surface moves, and every so often a ripple rings out from a letter along the waterline.
The water is laid along your own letters, so any word works; each line gets its own water. It is real text, drawn letter by letter in a layer over the heading, which screen readers and search read once. Waves sets how rough the water is.
- Formats
- React, HTML
- No dependencies
- Built with
- CSS and a little JS
- Default font Bricolage Grotesque
- Plays
- Loop, In view, Hover, On load
- Reduced motion
- Respected
- Shows the finished frame
Accessibility. One real heading, read once; the water and the copies of the letters are hidden from screen readers. Under reduced motion the letters float still.
Also known as floating text effect, water text animation, bobbing letters, waves text effect, underwater text, buoyant text.
Use it in anything you build, client work included, no credit needed. Don’t republish or resell the effect itself.