border-radius: 2px;
padding: 10px
}
@keyframes carousel {
0% {
content: "Scrimba";
}
25% {
content: "Scrimba's";
}
50% {
content: "JavaScriptmas";
}
75% {
content: "challenge";
}
100% {
content: "Scrimba";
}
}
html, body {
margin: 0;
padding: 0;
}
:root {
--bg-word: #5134ff;
}
.container {
display: flex;
align-items: center;
justify-content: center;
margin-top: 15%
}
h1 {
font-family: Arial, sans-serif;
font-size: 2em;
color: black;
position: relative;
margin-left: 5px;
}
h1::after {
content: "";
animation: carousel 4s infinite;
background: var(--bg-word);
color: white;