-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDay17_WordCarousel.css
96 lines (79 loc) · 1.51 KB
/
Day17_WordCarousel.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
*/
HTML:
<!doctype html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="container">
<h1>I love</h1>
<div>
</body>
</html>
/*
html, body {
margin: 0;
padding: 0;
}
:root {
--bg-word: #5134ff;
}
.container {
display: flex;
justify-content: center;
margin-top: 100px;
}
h1::after {
display: inline-block;
text-align: center;
border-radius: 10px;
color: white;
animation: textAnimation 5s infinite linear;
background: var(--bg-word);
}
@keyframes textAnimation {
0% {
content: " opossums";
background: var(--bg-word);
color: white;
margin: 10px;
padding: 10px;
}
25% {
content: " coyotes";
background: var(--bg-word);
color: white;
margin: 10px;
padding: 10px;
}
45% {
content: " wombats";
background: var(--bg-word);
color: white;
margin: 10px;
padding: 10px;
}
65% {
content: " foxes";
background: var(--bg-word);
color: white;
margin: 10px;
padding: 10px;
}
85% {
content: " racoons";
background: var(--bg-word);
color: white;
margin: 10px;
padding: 10px;
}
100% {
content: " axolotles";
background: var(--bg-word);
color: white;
margin: 10px;
padding: 10px;
}
}