Slide In Text
Text animation that slides in from the left with fade effect.
text
animation
slide
Preview
Loading preview...
HTML
<div class="slide-container">
<div class="slide-text">Welcome!</div>
<div class="slide-subtitle">Text slides in smoothly</div>
</div>
CSS
.slide-container {
overflow: hidden;
padding: 20px;
background: #f8f9fa;
border-radius: 8px;
max-width: 300px;
}
.slide-text {
font-size: 24px;
font-weight: 600;
color: #2c3e50;
animation: slideInLeft 1s ease-out;
}
.slide-subtitle {
font-size: 16px;
color: #7f8c8d;
margin-top: 8px;
animation: slideInLeft 1s ease-out 0.3s both;
}
@keyframes slideInLeft {
0% {
transform: translateX(-100%);
opacity: 0;
}
100% {
transform: translateX(0);
opacity: 1;
}
}