AI CSS Animations

CSS Image Hover Effects

48 CSS image hover effects: zooms, color and blur changes, caption slides, overlays, mask reveals and gallery effects. Swap the gradient stand-in for your own image.

How to use these image hover effects

Open any effect, copy the HTML into your markup and the CSS into your stylesheet. Nothing else is required: no JavaScript, no libraries. Classes are prefixed per effect so several can share a page.

To change the color, set --hfx-color on the element or any ancestor. To change the size, set --hfx-size: every dimension inside is in em, so padding, radii and offsets scale together.

Every snippet ships with a prefers-reduced-motion rule that disables the movement for people who asked their OS for less of it. The hover state still applies, only the transition is skipped.