← All elements
<div class="llh" aria-label="Bounce"><span style="--i:0">B</span><span style="--i:1">O</span><span style="--i:2">U</span><span style="--i:3">N</span><span style="--i:4">C</span><span style="--i:5">E</span></div>About this hover effect
A word whose letters hop up one after another when hovered, using a per-letter delay set in a custom property.
How it works
Each letter is its own tile with an index in a custom property. Hovering the row lifts every tile and changes its colour, and the transition delay is the index multiplied by 55 milliseconds, so the letters rise one after another in a wave.
Ways to customise it
- Change the 55ms step for a faster or slower wave.
- Change the -14px lift height.
- Add letters and give each the next index.
Good to know
The wrapper carries the whole word as its label, so check how your target screen readers handle the separate letters. The motion is removed for reduced-motion users.
Open an example, copy the HTML and the CSS, and paste them into your page. There is nothing to install and no JavaScript to load.