Skip to content

Commit

Permalink
hover effect on card added
Browse files Browse the repository at this point in the history
  • Loading branch information
JPodgrodzki committed Nov 2, 2024
1 parent 100cfac commit a7d5f1d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ body {
flex-wrap: wrap;
justify-content: center;
align-items: center;
transition: transform 300ms;

&__image {
background-image: url(../images/imac.jpeg);
Expand Down Expand Up @@ -182,6 +183,14 @@ body {
color: $third-color;
}
}

&:hover {
transform: scale(1.2);
}

&:hover .card__name {
color: $fifth-color;
}
}

.stars {
Expand Down
1 change: 1 addition & 0 deletions src/styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ $main-color: #060b35;
$second-color: #616070;
$third-color: #00acdc;
$fourth-color: white;
$fifth-color: #34568b;

0 comments on commit a7d5f1d

Please sign in to comment.