Skip to content

Commit

Permalink
Update button styles and add hover and click effects
Browse files Browse the repository at this point in the history
* Add transition for transform and box-shadow properties
* Add hover effect to create a 3D shadow effect
* Add click effect to create a 3D shadow effect
  • Loading branch information
GewoonJaap committed Oct 30, 2024
1 parent 81efa6a commit 26a937e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/lib/components/proxyList/connectButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,16 @@
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
}
button:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
button:active {
transform: translateY(2px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
</style>

0 comments on commit 26a937e

Please sign in to comment.