-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
106 lines (93 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
width: 100%;
height: 3000vh;
background: #000;
font-family: Arial, Helvetica, sans-serif;
}
img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.cursor {
position: fixed;
top: 0;
left: 0;
width: 300px;
height: 400px;
z-index: 0;
pointer-events: none;
}
nav,
footer {
position: fixed;
width: 100%;
padding: 2em;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 2;
mix-blend-mode: difference;
}
a,
p {
text-decoration: none;
color: #fff;
font-size: 14px;
}
a,
span {
padding: 0 2em;
}
.links {
display: flex;
gap: 2em;
}
nav {
top: 0;
}
footer {
bottom: 0;
}
.gallery {
position: fixed;
width: 200%;
height: 100%;
left: -75%;
overflow: hidden;
}
.item {
position: absolute;
top: 0;
left: 0;
transform: translate(-50%, -50%);
width: 800px;
height: 80px;
cursor: pointer;
}
.item p {
width: 100%;
font-size: 42px;
font-weight: 900;
text-transform: uppercase;
color: #fff;
transform: scaleX(1.2);
transition: ease 0.3s;
/* Stretch horizontally by 1.5 times */
}
.item p:hover {
font-size: 50px;
}
.item p span {
padding: 0 20px;
font-size: 16px;
}