Rotate In Animation

FREE

A rotate in 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

Rotate In Animation

This is a simple rotate in 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-rotate-in to the element you want to animate.

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

Use the class animate-rotate-in to apply the animation to an element.

<div class="animate-rotate-in">
    <!-- Your content here -->
</div>