Skip to content

Commit

Permalink
Add hover and active effects to icon buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
kangasta committed Feb 13, 2024
1 parent aa281c8 commit 44a40b5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/Menu/IconButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@
flex-direction: column
align-items: center
transition: transform 125ms
&:hover
transform: scale(1.125) translateY(-0.25rem)
&:active svg
transform: translateY(0.25rem)
.clickable
cursor: pointer
Expand Down

0 comments on commit 44a40b5

Please sign in to comment.