<div class="text-container">
<div>Hello, This is block of a text</div>
<div>Hello, This is another block of text</div>
<div>Hello, This is yet another block of text</div>
<div>Hello, This is also a block of text</div>
<div>Hello, This is the last block of text</div>
</div>
html, body {
margin: 0;
color: #fff;
font-family: Arial;
}
.text-container {
background: #000;
width: 100vw;
height: 100vh;
font-weight: bold;
font-size: 36px;
position: relative;
overflow: hidden;
}
.text-container > div {
animation: come2life linear 10s infinite;
transform-origin: center center;
opacity: 0;
width: 250px;
height: 200px;
position: absolute;
backface-visibility: hidden;
}
.text-container > div:nth-child(1) {
left: 30vw;
top: 30vh;
animation-delay: 0s;
}
.text-container > div:nth-child(2) {
left: 70vw;
top: 30vh;
animation-delay: 4s;
}
.text-container > div:nth-child(3) {
left: 50vw;
top: 50vh;
animation-delay: 8s;
}
.text-container > div:nth-child(4) {
left: 30vw;
top: 70vh;
animation-delay: 6s;
}
.text-container > div:nth-child(5) {
left: 70vw;
top: 70vh;
animation-delay: 2s;
}
@keyframes come2life {
0% {
transform: scale3d(0,0,1) rotate(0.02deg);
opacity: 0;
filter: blur(10px);
}
25% {
transform: scale3d(1,1,1) rotate(0.02deg);
opacity: 1;
filter: blur(0px);
}
40% {
opacity: 1;
filter: blur(0px);
}
80% {
opacity: 0;
}
100% {
transform: scale3d(4,4,1) rotate(0.02deg);
filter: blur(10px);
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.