Spring Tooltip

A tooltip that pops up with a tiny bounce

Create a spring tooltip. A small dark tooltip that pops above its trigger with a tiny bounce, instead of just fading in. Entrance: from opacity 0, translateY(6px), scale(0.9) to full, with a spring (stiffness ~550, damping ~22, one subtle overshoot) and transform-origin: bottom center so it grows from the arrow. Exit: quick fade with slight shrink, 120ms. Add a 150-300ms show delay on hover so tooltips don't flicker while the cursor crosses the page; no delay on keyboard focus. Structure: dark ink background, light text, 12-13px, radius 8px, an 8px diamond arrow (a rotated square of the same background) centered under it, white-space: nowrap for short labels. Accessibility: role='tooltip'; the trigger references it with aria-describedby while visible; show on both hover and focus, hide on blur/mouseleave/Escape. Never put interactive content inside a hover tooltip. Under prefers-reduced-motion, plain fast fade, no spring. Build the component, not this demo of it. - Ambient motion that IS the component may loop: a drifting background, a marquee, a spinner while something is genuinely loading. - Do not add any timer, interval, loop or script that performs a person's action by itself. No auto-hover, no auto-click, no cycling through states, no pretend submitting, no replaying the interaction on a schedule. - Every state that answers a person waits for a real event from that person. - Placeholder copy and sample content are welcome. Simulated behaviour is not.

Rate it
0
0

We'd like to measure how the site gets used, with Google Analytics. It sets cookies. Everything the site needs to work runs either way. How we handle data