Hover to Play Video
A still video thumbnail plays on hover as the play button shrinks away and a progress bar moves
This effect uses fixed demo content, so custom text isn’t applied.
Hannah's Motion Library
Web motion effects × AI prompts
AI prompt
A video thumbnail card: normally slightly dark and still, with a round play button in the middle and the duration at the bottom right; on hover the play button shrinks and fades, the picture brightens and starts playing (shown here with a slow push-in), and a progress bar appears at the bottom and starts moving; leaving pauses it and returns to the still state. (Implementation: call video.play() on hover and pause() on leave, resetting currentTime to 0; the play button transitions scale and opacity; the video needs muted and playsinline to autoplay)
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 image & media effects
346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts
Browse all effects →