Swing
Text
Type
Colour
Ground
Motion
About this effect
Swing hangs every letter from its own thread, pinned above it, and sends a breeze along the line: each letter swings out, back and out again a little less each time, a beat after the one before, until the word hangs still. It starts in plain white, because the motion is the point; give the threads a colour for a friendlier sign.
Each letter is a span that rotates about the top of its thread; the thread and the pin are its pseudo-elements, so they swing with it. Only transform moves.
Use it for a playful heading, a shop sign or an empty state. A small angle with a slow stagger reads as a light breeze; a large one as a gust.
- Formats
- React, HTML
- No dependencies
- Built with
- CSS and a little JS
- Default font Bricolage Grotesque
- Plays
- Loop, Hover, In view, On load
- Reduced motion
- Respected
- Shows the finished frame
Accessibility. One real heading named by its words; the letters are decorative spans hidden from screen readers. Under reduced motion they hang still.
Also known as swinging text, hanging letters, pendulum text, dangling text, swaying text, wind text animation.
Use it in anything you build, client work included, no credit needed. Don’t republish or resell the effect itself.