Hover animations and effects
6 presets. Open one to tune it and copy the code.
Hover effects confirm that something is interactive before the user clicks. This collection covers the elements that need it most. Image zoom on hover scales a photo inside a fixed frame. Card lift raises a card and deepens its shadow. Underline grow draws a link underline from the left, center or right. Fill sweep floods an outline button with color, Glow border lights up the edge of a dark card, and Arrow nudge slides a button's arrow icon forward.
All of them are CSS transitions on a hover state, so they reverse smoothly when the pointer leaves. Most animate only transform, which keeps them cheap even in large grids.
Tune the distance, colors, duration and easing with a live preview, then copy the code as CSS, Tailwind (using hover: and group-hover: variants) or a React component with Motion's whileHover.
Do hover effects work on touch devices?
Phones have no hover. A tap usually triggers the hover state and leaves it stuck until the user taps elsewhere. Wrap hover rules in @media (hover: hover) so they only apply with a real pointer, and make sure the element is still clearly tappable without the effect, for example through a visible border or button shape.
How do I make hover effects keyboard accessible?
Apply the same styles on :focus-visible as on :hover. For cards that contain a link, use :focus-within on the card. That way users who navigate with Tab get the same feedback. In Tailwind, add focus-visible: variants next to hover:, and in React, Motion's whileFocus can mirror whileHover.
What is a good duration for a hover transition?
Between 0.15 and 0.4 seconds for most UI. Small elements like links and icons feel best around 0.2 to 0.3s; larger elements like cards and images can take 0.4 to 0.6s because they move more pixels. Use an ease-out style curve so the change starts immediately when the pointer arrives.