-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinesss.less
80 lines (75 loc) · 1.67 KB
/
linesss.less
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
.lines {
padding: 0;
box-sizing: border-box !important;
position: absolute;
top: 0;
left: 0;
right: 0;
height: 100%;
width: 100%;
z-index: -1;
overflow: hidden;
}
.lines2 {
padding: 0;
box-sizing: border-box !important;
position: absolute;
top: 0;
left: 0;
right: 0;
height: 100%;
width: 100%;
z-index: -1;
overflow: hidden;
}
.lines .line{
transform: skew(45deg);
}
.lines2 .line{
transform: skew(-45deg);
}
.line {
margin: 0;
padding: 0;
box-sizing: border-box !important;
position: absolute;
width: 1px;
height: 100%;
top: 0;
left: 50%;
background: rgba(255, 255, 255, 0.01);
overflow: hidden;
transform-origin: center;
&::after {
margin: 0;
padding: 0;
box-sizing: border-box !important;
content: '';
display: block;
position: absolute;
height: 15vh;
width: 10px;
top: -50%;
left: 0;
background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 75%, rgba(255, 255, 255, 0.5) 100%);
animation: run 15s 0s infinite;
animation-fill-mode: forwards;
animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
}
}
.loop(@n, @i: 1) when(@i =< @n){
.line:nth-child(@{i}) {
margin: 0;
padding: 0;
box-sizing: border-box !important;
margin-left: calc((@i)*150px - 2000px);
&::after {
margin: 0;
padding: 0;
box-sizing: border-box !important;
animation-delay: calc(@i*@i*@i*-0.2s);
}
}
.loop(@n, (@i + 1));
}
.loop(20);