-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
121 lines (108 loc) · 2.6 KB
/
style.css
File metadata and controls
121 lines (108 loc) · 2.6 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
* {
font-family: "Helvetica Neue", Helvetica, Arial, Verdana, Geneva, Tahoma,
sans-serif;
}
html {
background: rgb(40, 40, 40);
}
body::-webkit-scrollbar {
width: 0.8rem;
}
body::-webkit-scrollbar-thumb {
border-radius: 4px;
background: #777;
}
.container {
display: grid;
justify-content: center;
align-items: center;
grid-gap: 1.5rem;
grid-template-columns: repeat(auto-fit, minmax(100px, 500px));
margin-bottom: 2rem;
/* grid-template-rows: repeat(auto-fit, minmax(100px, 1fr)); */
}
.title {
text-align: center;
color: beige;
/* margin-bottom: 100px; */
font-size: 3rem;
margin: 4rem;
}
h1 span {
display: inline-block;
animation: float 0.5s ease-in-out infinite;
font-size: 3.5rem;
}
@keyframes float {
0%,
100% {
transform: none;
}
33% {
transform: translateY(-1px) rotate(-2deg);
}
66% {
transform: translateY(1px) rotate(2deg);
}
}
h1:hover span {
animation: bounce 0.5s;
}
@keyframes bounce {
0%,
100% {
transform: translate(0);
}
25% {
transform: rotateX(20deg) translateY(2px) rotate(-3deg);
}
50% {
transform: translateY(-20px) rotate(3deg) scale(1.1);
}
}
h1 span:nth-child(2) {
animation-delay: 0.05s;
}
h1 span:nth-child(3) {
animation-delay: 0.1s;
}
h1 span:nth-child(4) {
animation-delay: 0.15s;
}
h1 span:nth-child(5) {
animation-delay: 0.2s;
}
h1 span:nth-last-child(1) {
animation-delay: 0.35s;
}
span:nth-child(4n) {
color: hsl(50, 75%, 55%);
text-shadow: 1px 1px hsl(50, 75%, 45%), 2px 2px hsl(50, 45%, 45%),
3px 3px hsl(50, 45%, 45%), 4px 4px hsl(50, 75%, 45%);
}
span:nth-child(4n-1) {
color: hsl(135, 35%, 55%);
text-shadow: 1px 1px hsl(135, 35%, 45%), 2px 2px hsl(135, 35%, 45%),
3px 3px hsl(135, 35%, 45%), 4px 4px hsl(135, 35%, 45%);
}
span:nth-child(4n-2) {
color: hsl(155, 35%, 60%);
text-shadow: 1px 1px hsl(155, 25%, 50%), 2px 2px hsl(155, 25%, 50%),
3px 3px hsl(155, 25%, 50%), 4px 4px hsl(140, 25%, 50%);
}
span:nth-child(4n-3) {
color: hsl(30, 65%, 60%);
text-shadow: 1px 1px hsl(30, 45%, 50%), 2px 2px hsl(30, 45%, 50%),
3px 3px hsl(30, 45%, 50%), 4px 4px hsl(30, 45%, 50%);
}
span:nth-last-child(1) {
color: hsl(255, 35%, 50%);
text-shadow: 1px 1px hsl(0, 5%, 5%), 2px 2px hsl(0, 5%, 10%),
3px 3px hsl(0, 5%, 10%), 4px 4px hsl(0, 5%, 10%);
}
img {
display: block;
border-radius: 10px;
object-fit: contain;
width: 500px;
}