Highlighter Hover
Hovering key words in a paragraph sweeps a highlighter stroke behind them from left to right
This effect uses fixed demo content, so custom text isn’t applied.
Hannah's Motion Library
Web motion effects × AI prompts
AI prompt
A few key words in a paragraph: on hover, a highlighter-like band with a slightly slanted edge, sitting a little below the text's midline, sweeps quickly behind them from left to right while the text color inverts to stay readable; leaving retracts it. About 0.55 s. (CSS: the mark element's background is a linear-gradient band with slanted ends, background-size transitions from 0% to 100%, with background-position set low so it looks like a hand-drawn highlighter)
When you copy it, a note to “match the site’s existing theme colors” is added automatically, so you don’t need to specify colors.
How to use it
- Tap “Copy AI prompt”.
- Paste it into an AI such as ChatGPT or Claude, and tell it which element on your site to apply it to (for example, the homepage headline or a buy button).
- The AI writes code that matches your site’s colors. Paste it into your project, then fine-tune the timing and distances.
More text effects
346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts
Browse all effects →