forked from wesbos/JavaScript30
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
105 lines (93 loc) · 1.26 KB
/
style.css
File metadata and controls
105 lines (93 loc) · 1.26 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
body {
padding: 0;
margin: 0;
font-family: sans-serif;
}
#page {
width: 100%;
height: 100%;
}
.block {
width: 100%;
color: white;
text-transform: uppercase;
font-size: 20px;
background: #ff7400;
height: 800px;
background-attachment: fixed;
background-position: 50% 50%;
}
.container {
display: flex;
margin: 0 auto;
height: 100%;
align-items: center;
}
img {
max-width: 100%;
}
.block .moving {
perspective: 1000px;
}
.block h2 {
text-align: center;
margin: 0 auto;
text-shadow: 0px 5px 5px black;
}
.animation-container {
position: relative;
left: 20%;
}
.phone_container {
position: relative;
z-index: 10;
}
.animate {
position: absolute;
}
.up {
top: 30%;
left: -20%;
}
.left {
left: -10%;
top: -5%;
}
.down {
bottom: 0;
right: -10%;
}
.right {
top: 45%;
right: -5%;
}
.shadow {
position: absolute;
bottom: -135px;
left: 41px;
max-width: 100%;
}
.phone {
max-width: 100%;
width: 300px;
height: auto;
}
.block.one {
background-color: purple;
background-attachment: fixed;
}
.block.two {
background-color: white;
}
.block.three {
background-color: #ff7400;
}
.block.four {
background-color: purple;
}
.block.five {
background-color: black;
}
.block.five {
background-color: purple;
}