Skip to content

Commit 9dd1dca

Browse files
committed
Mouse Cursor, Button Hover
1 parent f0dfd45 commit 9dd1dca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

17. Mouse Cursor/style.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ button {
4242
cursor: pointer;
4343
}
4444

45+
button:hover{
46+
background: #fff;
47+
color: #000;
48+
border: 2px solid white;
49+
}
50+
4551
/* JavaScript */
4652
div.cursor {
4753
position: absolute;
@@ -53,4 +59,5 @@ div.cursor {
5359
border-radius: 50%;
5460
transform: translate(-50%, -50%);
5561
border: 2px solid white;
62+
z-index: -1;
5663
}

0 commit comments

Comments
 (0)