To use this, simply add the flip class to a container element, and include the front and back elements inside it.
This animation consists of four essential components:
flip - The outer container that creates and maintains the 3D perspectiveflipper - The inner element that physically rotates during the animationfront - The visible face before flipping occursback - The hidden face that becomes visible after flippingflip Works
flip class sets the base dimensions for the animation.1px to 2000px, depending on your needs using QuickCSS height utillies such as h-1 to h-2000.100%, meaning it automatically adjusts to fit the width of its parent container. This ensures the animation scales seamlessly within any layout.<div class="flip">
<div class="flipper">
<div class="front your custom classes here">This is where your object goes</div>
<div class="back your custom classes here">This is where your back content goes</div>
</div>
</div>