256

Following Eyes

A pair of big eyes keeps following the cursor and blinks now and then

CursorHover & clickIdle loopUI interactionLogo & brandCSSJS atan2

Hannah's Motion Library
Web motion effects × AI prompts

AI prompt

A pair of big eyes (whites + pupils, each pupil with a small highlight) whose pupils keep turning toward the cursor: the farther the cursor, the closer the pupils get to the edge, returning to the middle when the cursor is right in front; every few seconds both eyes blink quickly together (squashing vertically and restoring, about 0.15 s). Good for mascots, 404 pages or playful interactions. (JS: compute an atan2 angle from each eye's center, distance = min(1, distance / range) × max offset, move the pupils with transform; blink by toggling a scaleY class)

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 cursor effects

346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts

Browse all effects →