Pulse Animation
A pulse animation for elements
Demo
MAX
Acquire the MAX Plan
Unlock unlimited potential with our most advanced features and priority support.
Pulse Animation
This is a simple pulse 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-pulse-custom
to the element you want to animate.
@layer utilities {
.animate-pulse-custom {
animation: pulseCustom 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulseCustom {
0%,
100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.05);
opacity: 0.8;
}
}
}
Use the class animate-pulse-custom
to apply the animation to an element.
<div class="animate-pulse-custom">
<!-- Your content here -->
</div>