Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit baedb8f

Browse files
committed
fixed mouse animation
1 parent 48671a4 commit baedb8f

File tree

2 files changed

+46
-62
lines changed

2 files changed

+46
-62
lines changed

src/components/other/HeaderTyper/styles.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
.Cursor_Blink {
2525
-webkit-animation: blink 0.8s infinite;
26+
animation: blink 0.8s infinite;
2627
}
2728

2829
@-webkit-keyframes blink {
Lines changed: 45 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,59 @@
11
.MouseContainer {
2-
left: 50%;
3-
transform: translateX(-50%);
4-
position: absolute;
5-
bottom: 40px;
2+
left: 50%;
3+
transform: translateX(-50%);
4+
position: absolute;
5+
bottom: 40px;
66
}
77

88
.Mouse {
9-
width: 25px;
10-
height: 45px;
11-
border: 2px solid var(--ifm-color-on-background-2);
12-
border-radius: 15px;
13-
position: relative;
14-
text-align: center;
9+
width: 25px;
10+
height: 45px;
11+
border: 2px solid var(--ifm-color-on-background-2);
12+
border-radius: 15px;
13+
position: relative;
14+
text-align: center;
1515
}
1616

1717
.MouseWheel {
18-
position: relative;
19-
display: block;
20-
height: 6px;
21-
margin: 2px auto 0;
22-
width: 4px;
23-
background-color: var(--ifm-color-on-background-2);
24-
border-radius: 50%;
25-
-webkit-animation: 1.6s ease infinite wheel-up-down;
26-
-moz-animation: 1.6s ease infinite wheel-up-down;
27-
animation: 1.6s ease infinite wheel-up-down;
18+
position: relative;
19+
display: block;
20+
height: 6px;
21+
margin: 2px auto 0;
22+
width: 4px;
23+
background-color: var(--ifm-color-on-background-2);
24+
border-radius: 50%;
25+
-webkit-animation: wheel-up-down ease 1.6s infinite;
26+
animation: wheel-up-down ease 1.6s infinite;
2827
}
2928

3029
@-webkit-keyframes wheel-up-down {
31-
0% {
32-
margin-top: 2px;
33-
opacity: 0;
34-
}
35-
36-
30% {
37-
opacity: 1;
38-
}
39-
40-
100% {
41-
margin-top: 20px;
42-
opacity: 0;
43-
}
44-
}
45-
46-
@-moz-keyframes wheel-up-down {
47-
0% {
48-
margin-top: 2px;
49-
opacity: 0;
50-
}
51-
52-
30% {
53-
opacity: 1;
54-
}
55-
56-
100% {
57-
margin-top: 20px;
58-
opacity: 0;
59-
}
30+
0% {
31+
margin-top: 2px;
32+
opacity: 0;
33+
}
34+
35+
30% {
36+
opacity: 1;
37+
}
38+
39+
100% {
40+
margin-top: 20px;
41+
opacity: 0;
42+
}
6043
}
6144

6245
@keyframes wheel-up-down {
63-
0% {
64-
margin-top: 2px;
65-
opacity: 0;
66-
}
67-
68-
30% {
69-
opacity: 1;
70-
}
71-
72-
100% {
73-
margin-top: 20px;
74-
opacity: 0;
75-
}
46+
0% {
47+
margin-top: 2px;
48+
opacity: 0;
49+
}
50+
51+
30% {
52+
opacity: 1;
53+
}
54+
55+
100% {
56+
margin-top: 20px;
57+
opacity: 0;
58+
}
7659
}

0 commit comments

Comments
 (0)