-
Notifications
You must be signed in to change notification settings - Fork 0
/
cursor.css
90 lines (83 loc) · 1.59 KB
/
cursor.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
body {
margin: 0;
height: 100vh;
cursor: none;
background: #1b1b1b;
}
.cursor {
width: 10px;
height: 10px;
border: 1px solid white;
border-radius: 50%;
position: absolute;
pointer-events: none;
}
.cursor::after {
content: "";
width: 10px;
height: 10px;
position: absolute;
border: 4px solid gray;
border-radius: 50%;
opacity: .5;
top: -4px;
left: -4px;
-webkit-animation: cursorAnim2 .5s infinite alternate;
animation: cursorAnim2 .5s infinite alternate;
}
@-webkit-keyframes cursorAnim2 {
from {
-webkit-transform: scale(1);
transform: scale(1);
}
to {
-webkit-transform: scale(0.8);
transform: scale(0.8);
}
}
@keyframes cursorAnim2 {
from {
-webkit-transform: scale(1);
transform: scale(1);
}
to {
-webkit-transform: scale(0.8);
transform: scale(0.8);
}
}
@-webkit-keyframes cursorAnim3 {
0% {
-webkit-transform: scale(1);
transform: scale(1);
}
50% {
-webkit-transform: scale(2);
transform: scale(2);
}
100% {
-webkit-transform: scale(1);
transform: scale(1);
opacity: 0;
}
}
@keyframes cursorAnim3 {
0% {
-webkit-transform: scale(1);
transform: scale(1);
}
50% {
-webkit-transform: scale(2);
transform: scale(2);
}
100% {
-webkit-transform: scale(1);
transform: scale(1);
opacity: 0;
}
}
.expand {
-webkit-animation: cursorAnim3 .5s forwards;
animation: cursorAnim3 .5s forwards;
border: 1px solid red;
}
/*# sourceMappingURL=kkk.css.map */