-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
82 lines (72 loc) · 1.39 KB
/
style.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/* FIRST APPLE-LIKE EFFECT */
html {
height: 100vh;
}
body {
height: 500vh;
background: #000;
}
canvas {
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
max-width: 100vw;
max-height: 100vh;
z-index: 1;
}
/* SCROLL DOWN TEXT */
.scroll-down-text-container {
width: 100%;
height: 45px;
display: flex;
justify-content: center;
z-index: 100;
}
.scroll-down-text {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 1rem;
font-weight: 300;
color: rgb(255, 255, 255);
}
.scroll-down-text .down-arrow {
position: relative;
animation: bounce 1s infinite;
}
@keyframes bounce {
0% {
top: 0;
}
50% {
top: 0.3rem;
}
100% {
top: 0;
}
}
/* SECOND APPLE-LIKE EFFECT */
/* BOTTOM PAGE ELEMENT */
.bottom-page-element-container {
position: fixed;
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 1rem;
z-index: 100;
}
.bottom-page-element {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 3rem;
font-weight: 600;
max-width: 300px;
color: #fff;
opacity: 0;
}
.bottom-page-element.show {
transition: opacity 0.5s ease;
opacity: 1;
}