You are currently viewing Create Custom Flip Box in Elementor & CSS – WordPress Tutorial

Create Custom Flip Box in Elementor & CSS – WordPress Tutorial

(This page includes affiliate links. If you click and purchase, I receive a small commission at no extra cost from you and that way you can support me. I only recommend tools that I have personally used and loved.)

For Better Website Use Custom CSS with –

1 – Elementor Pro

CSS code to make Flip Box

  1. Change transition: transform 1s; in both .dm-front-card & .dm-back-card to your desired flip animation duration. 1s stands for 1 second, so for faster animation, use lower values like 0.2s, 0.3s etc. For slower animation use higher value like 1.5s, 1.6s, 2s etc.
  2. For vertical card flip, change the rotateY to rotateX in all 3 locations in the below code.
  3. To change direction of the flip, simply switch the positive/negative value of 180deg on both sides. Make sure they are opposite to get clean flip animation.
  4. .dm-flip-card is the CSS class of the main container that contains 2 containers with CSS classes .dm-front-card & .dm-back-card. Both inner containers should be given position absolute to place on top of each other. Make sure to add same min-height to main container and its both inner containers (front & back card containers).

Mayuresh Koli

DMmotionarts.com

Like & Subscribe

Empower Your Business with Speedy, No-Code Websites. Are you looking to boost your online presence? I’m here to help. With my expertise in graphics design and WordPress website development, I create fast and efficient websites using No Code Builders. Whether you need an ecommerce platform,

Mayuresh Koli

DMmotionarts.com

Like & Subscribe

Empower Your Business with Speedy, No-Code Websites. Are you looking to boost your online presence? I’m here to help. With my expertise in graphics design and WordPress website development, I create fast and efficient websites using No Code Builders. Whether you need an ecommerce platform,

				
					   .dm-flip-card {
        
        transform-style: preserve-3d;
        perspective: 2000px;
        
    }
    
    .dm-front-card {
        
        
        backface-visibility: hidden;
        transition: transform 1s; /*Flip Duration for front card*/
        
        
    }
    
    .dm-back-card {
        
        
        backface-visibility: hidden;
        transform:rotateY(180deg); /*Use rotateX for vertical flip, change to -180deg to change flip direction*/
        transition: transform 1s; /*Flip Duration for back card*/
        
        
        
    }
    
     .dm-flip-card:hover .dm-front-card {
        
        transform: rotateY(-180deg); /*Use rotateX for vertical flip, change to 180deg to change flip direction*/
        
    }
    
     .dm-flip-card:hover .dm-back-card {
        
        transform:rotateY(0deg); /*Use rotateX for vertical flip*/
        
    }
    
				
			

Leave a Reply