<div class="container">
<div class="text"></div>
</div>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.container {
width: 100%;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: #22231d;
}
.text {
width: 100%;
height: 200px;
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.text::after {
position: absolute;
content: "";
font-size: 5vw;
color: rgb(109, 92, 92);
opacity: 0;
letter-spacing: 0;
text-transform: uppercase;
animation: change-text 10s linear infinite;
}
@keyframes change-text {
10% {
opacity: 1;
content: "Die Another Day";
color: #9a4295;
letter-spacing: 10px;
}
35% {
content: "GoldenEye";
color: #2a44b9;
opacity: 1;
letter-spacing: 10px;
}
60% {
content: "Tomorrow Never Dies";
color: #c1b39f;
opacity: 1;
letter-spacing: 10px;
}
85% {
content: "The World Is Not Enough";
color: #460bcf;
opacity: 1;
letter-spacing: 10px;
}
0%,
25%,
50%,
75%,
100% {
opacity: 0;
letter-spacing: 0;
color: #fff;
content: "";
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.