-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy patharrow.css
64 lines (60 loc) · 1.57 KB
/
arrow.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
.arrows {
position: relative;
width: 6vmin;
height: 6vmin;
transform: translate(-50%, -50%);
padding-right: 30%;
}
.arrows:before {
content: "";
position: absolute;
margin-top: 10vmin;
width: 100%;
height: 100%;
border-left: 6.66667px solid rgba(0, 0, 0, 0.7);
border-bottom: 6.66667px solid rgba(0, 0, 0, 0.7);
transform: translate(26.66667px, 106.66667px) rotate(-45deg);
animation: arrows 2s linear infinite;
}
.arrows:after {
content: "";
position: absolute;
margin-top: 10vmin;
width: 100%;
height: 100%;
border-left: 16.66667px solid rgba(0, 0, 0, 0.7);
border-bottom: 16.66667px solid rgba(0, 0, 0, 0.7);
transform: translate(53.33333px, 0px) rotate(-45deg);
animation: arrows 2s linear infinite -1s;
}
@keyframes arrows {
0% {
border-left: 26.66667px solid transparent;
border-bottom: 26.66667px solid transparent;
transform: translate(-13.33333px, -53.33333px) rotate(-45deg);
}
10%,
90% {
border-left: 26.66667px solid transparent;
border-bottom: 26.66667px solid transparent;
}
50% {
border-left: 26.66667px solid rgba(0, 0, 0, 0.7);
border-bottom: 26.66667px solid rgba(0, 0, 0, 0.7);
transform: translate(-13.33333px, 0px) rotate(-45deg);
}
100% {
border-left: 26.66667px solid transparent;
border-bottom: 26.66667px solid transparent;
transform: translate(-13.33333px, 53.33333px) rotate(-45deg);
}
}
#rotate-text {
padding-top: 20vmin;
margin-left: -30vmin;
line-height: 2vmin;
width: 40vmin;
/* display:block; */
transform: rotate(-90deg);
transform: rotate(-90deg);
}