Slide Up Animation

FREE

A simple slide up animation for elements

Demo

PREMIUM

MAX

Acquire the MAX Plan

Unlock unlimited potential with our most advanced features and priority support.

All updates
All animations
No subscriptions
No hidden fees
$19.99
Payment once and get lifetime access

Slide Up Animation

This is a simple slide up animation that you can use for elements that enter the viewport.

Installation

1

Copy and paste the following code into your project.

Add the class animate-slide-up to the element you want to animate.

global.css
 
@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;
     }
   }
 
}
 
2

Use the class animate-slide-up to apply the animation to an element.

<div class="animate-slide-up">
    <!-- Your content here -->
</div>