-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparallax-style.css
55 lines (52 loc) · 972 Bytes
/
parallax-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
body {
margin: 0;
}
@font-face {
font-family: "Fugaz One";
src: url(fonts/FugazOne-Regular.ttf);
}
@font-face {
font-family: "Special Elite";
src: url(fonts/SpecialElite-Regular.ttf);
}
.wrapper {
height: 100vh;
overflow-y: auto;
overflow-x: hidden;
perspective: 10px;
}
header {
position: relative;
display: flex;
justify-content: center;
align-items: center;
height: 100%;
transform-style: preserve-3d;
z-index: -1;
font-family: Fugaz One;
}
.background {
transform: translateZ(-10px) scale(2);
}
.foreground {
transform: translateZ(-5px) scale(1.5) translateY(60%) scale(1);
}
.background,
.foreground {
position: absolute;
height: 100%;
width: 100%;
object-fit: fill;
z-index: -1;
}
.title {
font-size: 7rem;
color: white;
text-shadow: 0 0 5px black;;
}
section {
font-size: 2rem;
padding: 2rem;
background-color: #333;
color: white;
}