-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbighead.css
133 lines (130 loc) · 3.18 KB
/
bighead.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;800&family=Roboto+Slab:wght@300;500&display=swap');
.banner{
width: 100%;
height: 130vh;
text-align: center;
overflow: hidden;
position: relative;
}
.banner .bighead{
position: absolute;
width: 200px;
height: 250px;
top: 10%;
left: calc(50% - 100px);
transform-style: preserve-3d;
transform: perspective(1000px);
animation: autoRun 20s linear infinite;
z-index: 2;
}
@keyframes autoRun{
from{
transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
}to{
transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
}
}
.banner .bighead .item{
position: absolute;
inset: 0 0 0 0;
transform:
rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
translateZ(550px);
}
.banner .bighead .item img{
width: 100%;
height: 100%;
object-fit: cover;
}
.banner .content{
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: min(1400px, 100vw);
height: max-content;
padding-bottom: 100px;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
z-index: 1;
}
.banner .content h1{
font-family: 'Montserrat', sans-serif;
font-size: 16em;
line-height: 1em;
color: #FD1F03;
position: relative;
}
.banner .content h1::after{
position: absolute;
inset: 0 0 0 0;
content: attr(data-content);
z-index: 2;
-webkit-text-stroke: 2px #101010;
color: transparent;
}
.banner .content .author{
font-family: 'Roboto Slab', serif;
text-align: right;
max-width: 200px;
}
.banner .content h2{
font-size: 3em;
}
.banner .content .model{
background-image: url(img/shirt.png);
width: 100%;
height: 75vh;
position: absolute;
bottom: 0;
left: 0;
background-size: auto 130%;
background-repeat: no-repeat;
background-position: top center;
z-index: 1;
}
@media screen and (max-width: 1023px) {
.banner .bighead{
width: 160px;
height: 200px;
left: calc(50% - 80px);
}
.banner .bighead .item{
transform:
rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
translateZ(300px);
}
.banner .content h1{
text-align: center;
width: 100%;
text-shadow: 0 10px 20px #101010;
font-size: 7em;
}
.banner .content .author{
color: #F1F0F0;
padding: 20px;
text-shadow: 0 10px 20px #101010;
z-index: 2;
max-width: unset;
width: 100%;
text-align: center;
padding: 0 30px;
}
}
@media screen and (max-width: 767px) {
.banner .bighead{
width: 100px;
height: 150px;
left: calc(50% - 50px);
}
.banner .bighead .item{
transform:
rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
translateZ(180px);
}
.banner .content h1{
font-size: 5em;
}
}