Skip to content

Commit 978c2a8

Browse files
author
Niharika Shah
committed
hover on image
1 parent d06f336 commit 978c2a8

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/components/HomePage/header.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,29 @@
103103
width: 100%;
104104
height: 100%;
105105
border-radius: 10% 40%;
106+
transition: transform 0.3s ease, box-shadow 0.3s ease;
107+
}
108+
109+
.chh__header-image img:hover {
110+
transform: scale(1.1);
111+
box-shadow: 0 10px 20px rgba(243, 240, 240, 0.2);
112+
}
113+
114+
@keyframes damping {
115+
0% {
116+
transform: scale(1);
117+
}
118+
40% {
119+
transform: scale(1.06);
120+
}
121+
60% {
122+
transform: scale(1.05);
123+
}
124+
}
125+
126+
127+
.chh__header-image img:hover {
128+
animation: damping 0.6s ease-in-out; /* Applied damping keyframes on hover */
106129
}
107130

108131
@media screen and (max-width: 1050px) {

0 commit comments

Comments
 (0)