-
Notifications
You must be signed in to change notification settings - Fork 87
/
main2.css
103 lines (84 loc) · 1.47 KB
/
main2.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
body{
overflow: hidden;
margin: 0;
}
h1{
position: fixed;
top: 50%;
left: 0;
width: 100%;
text-align: center;
transform:translateY(-50%);
font-family: 'Love Ya Like A Sister', cursive;
font-size: 40px;
color: #c70012;
padding: 0 20px;
}
@media (min-width:1200px){
h1{
font-size: 60px;
}
}
* {
padding: 0;
margin: 0;
}
body {
background-color:bisque;
}
h1 {
font-family: 'Love Ya Like A Sister', cursive;
font-size: 7em;
font-weight: 50px;
text-align: center;
margin-top: 2em;
font-weight: 600;
position: fixed;
top: 50%;
left: 0;
width: 100%;
text-align: center;
transform:translateY(-200%);
}
h1 span {
display: inline-block;
}
h1 span span{
display: inline-block;
width: auto;
margin-right: -0.3em;
animation: animate-characters 0.75s var(--index) forwards;
animation-duration: 4s ;
animation-iteration-count: infinite;
opacity: 0;
position: relative;
}
@keyframes animate-characters {
0% {
bottom: -0.7em;
opacity: 1;
color:azure;
}
50% {
bottom: 0.7em;
color:tomato;
}
100% {
bottom: 0;
opacity: 1;
}
}
audio {
position: absolute;
top: 105%;
right: 44%;
animation: fadein ease 5s;
}
@keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}