Flipbook
Text
Put the changing words in {curly|braces}, split by bars.
Type
Colour
Ground
Motion
Build
About this effect
Flipbook is the "Build faster, bolder, together" hero: the sentence stays put while one word turns over like a card to show the next, each on a chip of its own colour. The chip and the rest of the line ease to the new width, so nothing jumps.
Write the changing words inside curly braces, separated by bars. The sentence is real text, the words are stacked spans that flip on the x axis with a little perspective, and the chip width is measured once the font has loaded.
Three to five words of similar length read best; very different lengths work, they just make the line breathe more.
- Formats
- React, HTML
- No dependencies
- Built with
- CSS and a little JS
- Default font Outfit
- Plays
- Loop
- Reduced motion
- Respected
- Shows the finished frame
Accessibility. The heading is named once with every word in the list, and the turning words are hidden from screen readers so nothing is announced on each change. Under reduced motion the first word stays.
Also known as rotating words, word rotate, flip words, text rotator, changing word headline, typed words.
Use it in anything you build, client work included, no credit needed. Don’t republish or resell the effect itself.