-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.scss
59 lines (53 loc) · 1003 Bytes
/
main.scss
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
*{
box-sizing: border-box;
}
body{
margin: 0;
padding: 0;
width: 100vw;
height: 100vh;
background: linear-gradient(45deg, rgb(30,30,40), rgb(50,50,60) );
overflow: hidden;
}
canvas{
position: absolute;
z-index: 2;
width: 100vw;
height: 100vh;
}
svg{
position: absolute;
z-index: 1;
top: 0;
width: 100%;
height: 100vh;
overflow: hidden;
}
.cloud{
transform: translate(0,0);
animation-name: cloudSlide;
animation-duration: 10s;
animation-direction: alternate;
animation-iteration-count: infinite;
animation-delay: 0s;
animation-fill-mode: both;
animation-timing-function: linear;
}
@keyframes cloudSlide{
from{
transform: translate(0px, 0px)
}
to{
transform: translate(30px, 0px);
}
}
@media( max-width: 750px ){
svg{
position: absolute;
z-index: 1;
top: 0;
width: 100%;
height: auto;
overflow: hidden;
}
}