Slide Up Animation
A simple slide up animation for elements
Demo
MAX
Acquire the MAX Plan
Unlock unlimited potential with our most advanced features and priority support.
Slide Up Animation
This is a simple slide up animation that you can use for elements that enter the viewport.
Installation
Copy and paste the following code into your project.
Add the class animate-slide-up
to the element you want to animate.
@layer utilities {
.animate-slide-up {
animation: slideUp 0.5s ease-out forwards;
}
@keyframes slideUp {
from {
transform: translateY(20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
}
Use the class animate-slide-up
to apply the animation to an element.
<div class="animate-slide-up">
<!-- Your content here -->
</div>