Hover Pause
A line of amber words that stops as soon as the mouse rests on it, and shows it: every word grows by 10% for as long as the pause lasts.
Updated
This effect is part of Effect.Labs — 846 vanilla effects, some free, some premium. Gallery has 44 effects, including 6 free. Explore the category →
3 usage examples



How it works
At rest, the line glides left at 80 px per second (data-speed). As soon as the mouse enters .hpmq-viewport, two things happen together: the animation pauses right where it is, and each <li> grows by 10% in 0.3 seconds (transform: scale, set by --hpmq-zoom). The mouse leaves: the words go back to their size and the line restarts from where it had stopped.
That growth is the signal that the line is “held”: you can read, aim at a word, click. It affects all the words at once, not only the one under the pointer. It also happens with the keyboard: when a link or a button in the band takes focus, the line goes back to its start, holds still and grows the same way.
The round button stops the line without enlarging it: that is a lasting pause, for someone who wants no more motion, whereas hovering is a reading pause. Since the words grow in place, leave a gap between them (--hpmq-space) wider than what they gain: 10% of the width of the longest one.
Accessibility
- Two ways to stop: hovering (mouse) and the Pause button with
aria-pressed(mouse, finger, Tab then Space or Enter). Only the button is dependable on a touch screen: see the question about phones. - Keyboard focus: a link or a
<button>placed in an<li>is reached with Tab, in the original list only. Its 2 px outline is drawn inset, at a distance worked out from the zoom, so it stays whole once the word is enlarged. A mouse click does not move anything: the line stays under the pointer and the click is not lost. - Zoom and legibility: the growth helps reading a stopped word; it does not replace a text size that is large enough at rest.
- If the user limits animations: the line does not scroll and is explored by hand. Hovering still enlarges the words, at once, with no transition.
- Contrast: amber #fbbf24 on #0a0a0f, 11.8:1.
Browser compatibility
animation-play-state: paused and transform: scale() driven by :hover, plus 5 KB of script to fill the line; no dependency. The inset focus outline relies on :focus-visible (Chrome 86, Firefox 85, Safari 15.4). Measured on 4 December 2026 in Chromium, Firefox and WebKit: clean stop on hover, scale 1.1 read on the words, restart when the mouse leaves, same behaviour when a link takes focus, two independent lines in one page.
Without JavaScript, the list is shown once, fixed, and the words still grow on hover. Without :focus-visible, the browser draws its own outline, cut at the top and bottom by the window of the line.
The code
HTML structure to paste into your page (the CSS + JS come with your purchase):
<div class="fx-0192-root" data-speed="80" data-direction="left">
<div class="hpmq-band">
<div class="hpmq-viewport">
<div class="hpmq-track">
<ul class="hpmq-group" role="list">
<li>A word</li>
<li><a href="/page">A link</a></li>
<li><button type="button">A button</button></li>
</ul>
</div>
</div>
<button type="button" class="hpmq-toggle" aria-pressed="false" aria-label="Pause"></button>
</div>
</div>
One-time payment, no subscription — the code is yours forever
Customize
Options passed to the API or data-* attributes:
| Option / property | Default | Effect |
|---|---|---|
--hpmq-zoom |
1.1 | Scale of the words during the hover or focus pause; 1 removes the growth. |
--hpmq-space |
4rem | Gap between two words; keep it wider than what the zoom adds to the longest one. |
data-speed / data-direction |
80 / left | Pixels per second at rest; right for the other direction. |
--hpmq-color / --hpmq-size |
#fbbf24 / 1.5rem | Hue and size of the words before they grow. |
Words (HTML — one <li> each) |
4 groups of words | Text, link or button; the whole <li> grows, whatever it contains. |
--hpmq-height / --hpmq-bg / --hpmq-padding |
180px / #0a0a0f / 1rem 0 | Dark demo frame, to neutralise in your page. |
--hpmq-button / --hpmq-button-size |
rgba(255, 255, 255, .8) / 2rem | Lasting-pause button. |
FAQ
--hpmq-space, or lower --hpmq-zoom (1.05 is still noticeable).