-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
86 lines (75 loc) · 1.45 KB
/
style.css
File metadata and controls
86 lines (75 loc) · 1.45 KB
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
81
82
83
84
85
86
body{
margin: 0;
padding: 0;
}
section {
position: relative;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
section div {
max-width: 800px;
}
section div h2 {
margin: 0;
padding: 0;
color: red;
font-size: 4em ;
}
section div p {
color: blueviolet;
font-size: 1.2em;
opacity: 0.5;
}
.scrolldown {
position: absolute;
bottom: 20px;
left: 50%;
width: 26px;
height: 26px;
transform: translateY(-80px) translateX(-50%) rotate(45deg);
}
.scrolldown span {
position: absolute;
display: block;
height: 100%;
width: 100%;
animation: animate 1.5s linear infinite;
}
.scrolldown span:nth-child(1) {
transform: translate(-15px, -15px);
animation-delay: -0.4s;
border-bottom: 2px solid #808080;
border-right: 2px solid #808080;
}
.scrolldown span:nth-child(2) {
transform: translate(0px, 0px);
animation-delay: -0.2s;
border-bottom: 2px solid #999999;
border-right: 2px solid #999999;
}
.scrolldown span:nth-child(3) {
transform: translate(15px, 15px);
animation-delay: 0s;
border-bottom: 2px solid #CCCCCC;
border-right: 2px solid #CCCCCC;
}
@keyframes animate {
0% {
top: -5px;
left: -5px;
opacity: 0;
}
25% {
top: 0px;
left: 0px;
opacity: 1;
}
50%, 100% {
top: 5px;
left: 5px;
opacity: 0;
}
}