-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cursor.css
62 lines (57 loc) · 1.49 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
.cursor {
width: 20px;
height: 20px;
border: 2px solid #00a693; /* Teal green to represent the base of the feather */
border-radius: 50%;
position: absolute;
transition-duration: 200ms;
transition-timing-function: ease-out;
animation: cursorAnim .5s infinite alternate;
pointer-events: none;
z-index: 1000; /* To ensure it's above other content */
}
.cursor::after {
content: "";
width: 20px;
height: 20px;
position: absolute;
border: 8px solid #0047ab; /* Deep blue to represent the vibrant color of a peacock feather */
border-radius: 50%;
opacity: 0.5;
top: -8px;
left: -8px;
animation: cursorAnim2 .5s infinite alternate;
}
@keyframes cursorAnim {
from {
transform: scale(1);
}
to {
transform: scale(0.7); /* Mimicking the gentle movement of a feather */
}
}
@keyframes cursorAnim2 {
from {
transform: scale(1);
}
to {
transform: scale(0.4); /* Smaller scale for a subtle effect */
}
}
@keyframes cursorAnim3 {
0% {
transform: scale(1);
}
50% {
transform: scale(3); /* Mimic the feather floating away */
border-color: #008080; /* A mix of green and blue for the mid-animation color */
}
100% {
transform: scale(1);
opacity: 0; /* Fade out like a feather drifting out of sight */
}
}
.expand {
animation: cursorAnim3 .5s forwards;
border: 1px solid #00a693; /* Again, the teal green for consistency */
}