-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhomepad.css
More file actions
97 lines (81 loc) · 1.62 KB
/
homepad.css
File metadata and controls
97 lines (81 loc) · 1.62 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
body {
margin:0;
padding:0;
font-family:Helvetica;
}
.other-seaction {
background-color: #eee;
height: 3000px;
}
.description{
width:490px;
padding:80px 50px;
box-sizing:border-box;
background-color:rgba(0, 0, 0, 0.8);
border-radius: 20px;
text-align: center;
color: #fff;
margin: 0 auto 100vh;
}
.description h3 {
font-size: 32px;
margin: 0;
padding: 0;
}
.description p{
font-size: 18px;
margin: 12px 0 0;
}
.homepod-container {
width: 100%;
height: 100vh;
position: sticky;
top: 0;
z-index:-1
}
.homepod{
width: 654px;
height: 825px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.homepod div{
width: inherit;
height: inherit;
background-size: contain;
background-position: center center;
position: absolute;
top: 0;
left: 0;
}
.device {
background-image: url(https://assets.codepen.io/2002878/homepod.jpg);
}
.part-1 {
background-image: url(https://assets.codepen.io/2002878/homepod_1.jpg);
opacity: var(--part-1);
}
.part-2 {
background-image: url(https://assets.codepen.io/2002878/homepod_2.jpg);
opacity: var(--part-2);
}
.part-3 {
background-image: url(https://assets.codepen.io/2002878/homepod_3.jpg);
opacity: var(--part-3);
}
.part-4 {
background-image: url(https://assets.codepen.io/2002878/homepod_4.jpg);
opacity: var(--part-4);
}
.ending {
background-image: url(https://assets.codepen.io/2002878/homepod.jpg);
opacity: var(--ending);
}
.description-container {
padding-bottom: 100vh;
}
.description:last-child {
margin-bottom: 0;
}