Skip to content

Commit

Permalink
Add hover effect to amazon clone.
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmirajesh committed Jan 9, 2025
1 parent dd7b5a3 commit 24e57f5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions public/Amazon_Clone/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ nav {
align-items: center;
}


.nav-center {
height: 40px;
display: flex;
Expand Down Expand Up @@ -185,7 +184,6 @@ nav {
background-color: #222f3d;
color: white;
justify-content: start;

}

.nav-options * {
Expand Down Expand Up @@ -319,6 +317,12 @@ main {
padding: 1rem;
cursor: pointer;
overflow: hidden;
transition: transform 0.3s, box-shadow 0.3s;
}

.item-card:hover {
transform: scale(1.05);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.item-card img {
Expand Down Expand Up @@ -421,7 +425,6 @@ main {
text-decoration: none;
color: white;
margin-left: 1rem;

}

/* Small Devices */
Expand Down Expand Up @@ -476,7 +479,6 @@ main {
height: 4vw;
}


.item-card {
height: 25vw;
flex: 1 0 20vw;
Expand Down

0 comments on commit 24e57f5

Please sign in to comment.