Fade In Animation
A simple fade in animation for elements
Demo
MAX
Acquire the MAX Plan
Unlock unlimited potential with our most advanced features and priority support.
Fade In Animation
This is a simple fade in animation that can be used for elements entering the viewport.
Installation
Copy and paste the following code into your project.
Add the class animate-fade-in
to the element you want to animate.
@layer utilities {
.animate-fade-in {
animation: fadeIn 1s ease-in-out forwards;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
}
Use the class animate-fade-in
to apply the animation to an element.
<div class="animate-fade-in">
<!-- Your content here -->
</div>