-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
100 lines (94 loc) · 1.8 KB
/
Copy pathstyle.css
File metadata and controls
100 lines (94 loc) · 1.8 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
@import url('https://fonts.googleapis.com/css2?family=Quintessential&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
min-height: 100vh;
background: no-repeat
linear-gradient(
135deg,
#000000,
#420000,
#6f0000,
#2e0000,
#000000
);
/* background-size: 400% 400%;
animation: dragon-breath 15s ease infinite;
position: relative;
overflow: hidden; */
}
h1 {
text-align: center;
padding-inline: 20px;
padding-block: 20px;
color: white;
font-size: 5rem;
font-family: 'Quintessential', cursive;
text-shadow: 0 0 10px rgba(255, 100, 0, 0.6);
}
main {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
min-height: 60vh;
column-gap: 2px;
padding-inline: 20px;
}
img {
height: 200px;
width: 120px;
object-fit: cover;
box-shadow: 0 0 20px rgba(255, 50, 0, 0.4);
}
.list {
transform-style: preserve-3d;
transform: perspective(1000px);
}
.item {
transition: 0.5s;
filter: brightness(0);
}
.item:hover {
filter: brightness(1);
transform: translateZ(200px);
}
.item:hover + * {
filter: brightness(0.6);
transform: translateZ(150px) rotateY(40deg);
}
.item:hover + * + * {
filter: brightness(0.4);
transform: translateZ(70px) rotateY(20deg);
}
.item:hover + * + * + * {
filter: brightness(0.2);
transform: translateZ(35px) rotateY(10deg);
}
.item:has(+ *:hover) {
filter: brightness(0.6);
transform: translateZ(150px) rotateY(-40deg);
}
.item:has(+ * + *:hover) {
filter: brightness(0.4);
transform: translateZ(70px) rotateY(-20deg);
}
.item:has(+ * + * + *:hover) {
filter: brightness(0.2);
transform: translateZ(35px) rotateY(-10deg);
}
/* Animation for background */
/* @keyframes dragon-breath {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
} */