From c3ff54cb3d0e399b65ffc47acceab16ba0024611 Mon Sep 17 00:00:00 2001 From: Ishan Bhargava Date: Wed, 25 Oct 2023 22:23:53 +0530 Subject: [PATCH] add hover --- src/App.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/App.css b/src/App.css index a185756..d52a206 100644 --- a/src/App.css +++ b/src/App.css @@ -48,6 +48,7 @@ justify-content: center; align-items: center; flex-wrap: wrap; + overflow-x: hidden; } .card { @@ -61,4 +62,10 @@ width: 100%; object-fit: cover; vertical-align: middle; + transition: all 0.4s ease-in-out; +} + +.card img:hover { + transform: scale(1.5); + z-index: 2; }