Skip to content

Commit

Permalink
adding icon hover animation in modal and buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Cesar Faber authored and Cesar Faber committed Feb 9, 2024
1 parent 2576e59 commit f297279
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/Modal/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,21 @@
cursor: pointer;
border-bottom: 1px solid #3b3b3b;

svg {
transition: transform 0.3s ease;
}

&:hover, &.-active {
background: #474747;

a {
text-decoration: none;
}

svg {
transform: scale(1.5);
stroke: white;
}
}

&:last-of-type {
Expand Down
15 changes: 15 additions & 0 deletions src/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,24 @@ button,
font-weight: lighter;
line-height: 14px;

svg {
transition: transform 0.3s ease;
}

&:hover {
text-decoration: none;

cursor: pointer;
background-color: #3a3a3a;

p {
color: white;
}

svg {
transform: scale(1.2);
stroke: white;
}
}

&.-toggle {
Expand All @@ -123,6 +137,7 @@ button,
&:hover {
background: none;
text-decoration: underline;
color: white;
}
}

Expand Down

0 comments on commit f297279

Please sign in to comment.