Skip to content

Commit a0e83b8

Browse files
authored
Merge pull request #19 from KavyaBS123/master
added hovering
2 parents ab9005d + 8bb6a64 commit a0e83b8

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

style.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,17 @@ header{
258258
left: 0;
259259
transform: translateX(50%);
260260
}
261-
262-
261+
.box {
262+
background: #ffffff;
263+
border-radius: 10px;
264+
overflow: hidden;
265+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
266+
transition: transform 0.3s, box-shadow 0.3s;
267+
}
268+
.box:hover{
269+
transform: scale(1.05);
270+
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
271+
}
263272

264273

265274
.carweb img{

0 commit comments

Comments
 (0)