Skip to content

Commit be2bf42

Browse files
committed
small change for hover
1 parent 4121010 commit be2bf42

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/app/globals.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,24 @@ body {
3838

3939
button {
4040
cursor: pointer;
41-
transition: transform 0.3s;
41+
border: 1px solid transparent;
42+
z-index: 0;
43+
44+
transition:
45+
transform 0.3s,
46+
border 0.3s;
4247
}
4348

4449
button:hover {
50+
z-index: 2;
4551
transform: scale(125%);
52+
border: 1px solid var(--secondary);
4653
}
4754

4855
button:active {
56+
z-index: 1;
4957
transform: scale(110%);
58+
border: 1px solid var(--secondary);
5059
}
5160

5261
.slump-animation {

0 commit comments

Comments
 (0)