Sign inSign up

Pure CSS3 Image Hover Animation Library imagehover.css

Add-ons
2026-07-26 07:04 3 views • 0 downloads 11.4KB
Pure CSS3 Image Hover Animation Library imagehover.css

Usage

To use it, include the imagehover.css or imagehover.min.css file in your page.

1
<link type="text/css" rel="stylesheet" href="css/imagehover.min.css" />

HTML Structure

Use the following HTML structure on your page. Set the image src to the image you need. Hover Content is the content displayed when the mouse hovers over the image and can be customized. In the <figure> element, set the class attribute to the class corresponding to your desired image hover effect.

1
2
3
4
5
6
7
<figure class="imghvr-fade">
<img src="#">
<figcaption>
// Hover Content
</figcaption>
<a href="#"></a>
</figure>

The available image hover effect classes in imagehover.css include:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
imghvr-fade
imghvr-push-up
imghvr-push-down
imghvr-push-left
imghvr-push-right
imghvr-slide-up
imghvr-slide-down
imghvr-slide-left
imghvr-slide-right
imghvr-reveal-up
imghvr-reveal-down
imghvr-reveal-left
imghvr-reveal-right
imghvr-hinge-up
imghvr-hinge-down
imghvr-hinge-left
imghvr-hinge-right
imghvr-flip-horiz
imghvr-flip-vert
imghvr-flip-diag-1
imghvr-flip-diag-2
imghvr-shutter-out-horiz
imghvr-shutter-out-vert
imghvr-shutter-out-diag-1
imghvr-shutter-out-diag-2
imghvr-shutter-in-horiz
imghvr-shutter-in-vert
imghvr-shutter-in-out-horiz
imghvr-shutter-in-out-vert
imghvr-shutter-in-out-diag-1
imghvr-shutter-in-out-diag-2
imghvr-fold-up
imghvr-fold-down
imghvr-fold-left
imghvr-fold-right
imghvr-zoom-in
imghvr-zoom-out
imghvr-zoom-out-up
imghvr-zoom-out-down
imghvr-zoom-out-left
imghvr-zoom-out-right
imghvr-zoom-out-flip-horiz
imghvr-zoom-out-flip-vert
imghvr-blur