288

Link Preview Popover

Hovering a link in an article pops up a small card previewing the linked page

TextHover & clickUI interactionCSS:has()

Hannah's Motion Library
Web motion effects × AI prompts

AI prompt

An underlined link in an article paragraph: on hover (or keyboard focus) a small preview card springs up right above it, with the linked page's thumbnail, title and URL, growing and rising from slightly smaller, lower and transparent; leaving shrinks and fades it. Good for external links on blogs, wikis or portfolios. (CSS: the preview card is absolutely positioned above the link with transform-origin at the bottom center, scale .9 + translateY → none, transition cubic-bezier(.3,1.4,.5,1); triggered by :has(a:hover) or :focus-within)

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

  1. Tap “Copy AI prompt”.
  2. 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).
  3. 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 →