Rotate In Animation
A rotate in animation for elements
Demo
MAX
Acquire the MAX Plan
Unlock unlimited potential with our most advanced features and priority support.
Rotate In Animation
This is a simple rotate in 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-rotate-in
to the element you want to animate.
@layer utilities {
.animate-rotate-in {
animation: rotateIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes rotateIn {
from {
transform: rotate(-10deg) scale(0.8);
opacity: 0;
}
to {
transform: rotate(0) scale(1);
opacity: 1;
}
}
}
Use the class animate-rotate-in
to apply the animation to an element.
<div class="animate-rotate-in">
<!-- Your content here -->
</div>