Skip to content

Commit

Permalink
Added the hovering effect to cards
Browse files Browse the repository at this point in the history
  • Loading branch information
reshamsai150 committed Oct 2, 2024
1 parent 287a2f2 commit ac27403
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,18 @@ nav {
background-repeat: no-repeat;
}

/* card hover effect */
.trainer__card {
position: relative;
overflow: hidden;
transition: transform 0.3s ease-in-out;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.trainer__card:hover {
transform: scale(1.1);
}

.header__container {
padding-block: 10rem;
display: grid;
Expand Down

0 comments on commit ac27403

Please sign in to comment.