Make a CSS hover effect
Type your button text or paste your CSS. Pick an effect, see it live, and copy the code.
- Free, no sign-up
- Nothing uploaded
- CSS, HTML, Tailwind
Nothing to hand? Try one:
How it works
- Say what it is for. A button, card, link or image, and the words on it. The effect appears as soon as you type.
- Pick an effect. Lift, grow, colour shift, fill sweep, arrow nudge, shine or ring for buttons; lift, outline, image zoom or arrow for cards; an underline, a marker highlight, a colour change or an arrow for links; zoom, caption reveal or lift for images.
- Timing from the rules. Each effect starts from a timing table: hover-in in 150 to 200 ms with ease-out, a slightly slower return with ease-in-out, 300 ms in and 400 ms back for image zoom. Change any of it under More options and the preview follows.
- Copy it. The CSS, the HTML, or Tailwind classes, or download a demo page. The hover sits inside
@media (hover: hover), keyboard focus gets the same effect and an outline, and reduced motion turns the animation off. - Read the hover check. It flags a slow or sluggish hover, ease-in on the way in, scale over 1.05, moves big enough to cause a mis-click, a shadow that grows more than 8 px, more than three animated properties, and text contrast under 4.5:1.
- Or paste your own CSS. The page reads your class, colour and hover rule, lists what breaks the rules, and rebuilds it with the fixes.
Questions
- How long should a hover effect take?
- Hover-in should respond in 150 to 200 ms and never take more than 300 ms, or it feels like lag. The return can be a little slower, 200 to 300 ms. Image zoom is the exception that may use 300 ms on the way in and 400 ms back.
- Why are there two transition times in the CSS?
- The transition on the :hover rule sets the way in and the transition on the element itself sets the way back, so the hover can respond fast with ease-out and return a little slower with ease-in-out.
- What happens on phones and touch screens?
- The hover rules sit inside @media (hover: hover), so a tap never leaves an effect stuck on. Nothing on the element depends on hover; a caption that is revealed on hover is always shown on a touch screen.
- Can it check the hover CSS I already have?
- Yes. Paste your CSS into the first box. The page reads your class, colour, corner radius and hover rule, lists what breaks the hover rules, such as a slow transition, transition: all, a big scale or animating width, and rebuilds the effect with those fixed.
- What does the AI step do?
- It reads a short description of the hover you want and suggests two or three effects for your element. The page builds each one and refuses any that is slow, too big, names motion the page does not draw, or breaks another hover rule.
- Is anything uploaded?
- No. The effect, the check and every copy and download are made inside your browser tab. Only the optional AI step sends your element, your effect settings and your description, and only when you press its button.