-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
124 lines (102 loc) · 2.57 KB
/
styles.css
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
.images {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
grid-gap: 20px;
width: 500px;
margin: 0 auto;
}
.img-hover-zoom {
overflow: hidden;
position: relative;
width: 100%;
}
/* Basic Image Hover CSS */
.img-hover-zoom img {
width: 100%;
height: 100%;
transition: transform 0.5s ease;
object-fit: cover;
}
.img-hover-zoom:hover img {
transform: scale(1.5);
}
/* Quick Zoom CSS */
.img-hover-zoom--quick-zoom img{
transform-origin: 0 0;
transition: transform 0.25s, visibility 0.25s ease-in;
}
.img-hover-zoom--quick-zoom:hover img {
transform: scale(2);
}
/* Point Zoom CSS */
.img-hover-zoom--point-zoom img{
transform-origin: 65% 75%;
transition: transform 1s, filter 0.5s ease-out;
}
.img-hover-zoom--point-zoom:hover img {
transform: scale(5);
}
/* Zoom-n Rotate CSS */
.img-hover-zoom--zoom-n-rotate img{
transition: transform 0.5s ease-in-out;
}
.img-hover-zoom--zoom-n-rotate:hover img {
transform: scale(2) rotate(25deg);
}
/* Slow Motion CSS */
.img-hover-zoom--slow-motion img{
transform-origin: 50% 65%;
transition: transform 5s, filter 3s ease-in-out;
filter: brightness(150%);
}
.img-hover-zoom--slow-motion:hover img {
filter: brightness(100%);
transform: scale(3);
}
/* Brightness CSS */
.img-hover-zoom--brightness img {
transform-origin: center center;
transition: transform 2s, filter 1.5s ease-in-out;
filter: brightness(50%);
}
.img-hover-zoom--brightness:hover img {
filter: brightness(100%);
transform: scale(1.3);
}
/* Horizontal Zoom-n-pan CSS */
.img-hover-zoom--horizontal-zoom img {
transition: transform 0.5s ease-in-out;
transform: scale(1.4);
transform-origin: 100% 0;
}
.img-hover-zoom--horizontal-zoom:hover img {
transform: scale(1.5) translateX(30%);
}
/* Vertical Zoom-n-pan CSS */
.img-hover-zoom--vertical-zoom img {
transition: transform 0.5s ease-in-out;
transform: scale(1.4);
transform-origin: 0 0;
}
.img-hover-zoom--vertical-zoom:hover img {
transform: scale(1.25) translateY(-30%);
}
/* Blur Zoom CSS */
.img-hover-zoom--blur-zoom img {
transition: transform 1s, filter 2s ease-in-out;
filter: blur(2px);
transform: scale(1.2);
}
.img-hover-zoom--blur-zoom:hover img {
filter: blur(0);
transform: scale(1);
}
/* Colorize CSS */
.img-hover-zoom--colorize img {
transition: transform 0.5s, filter 1.5s ease-in-out;
filter: grayscale(100%);
}
.img-hover-zoom--colorize:hover img {
filter: grayscale(0);
transform: scale(1.1);
}