Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                 <html> 
   <body>
<h2 class="titles">The Creative Process</h2>
    
    <div class="demoWrapper">
    <!-- Card One -->
    <div class="card box creative-pro"  style="max-width: 18rem;">
  <img class="card-img-top" src="" alt="">
  <div class="card-body p-6">Conception
    <small class="card-clr d-block mb-3"><br>Curabitur dictum odio id sapien placerat lacinia. In volutpat a elit et luctus. </small>
  </div>
</div>
    
    
    <!-- Card Two -->
    
    <div class="card box creative-pro"  style="max-width: 18rem;">
  <img class="card-img-top" src="" alt="">
  <div class="card-body p-6">Sketch Up
    <small class="card-clr d-block mb-3"><br>Sed nec tincidunt erat. Duis nunc mi, dictum nec ligula quis, mollis condimentum odio. Mauris in orci id libero ultrices vestibulum. </small>
  </div>
</div>
    
    
    
      <!-- Card Three -->
    
    <div class="card box creative-pro"  style="max-width: 18rem;">
  <img class="card-img-top" src="" alt="">
  <div class="card-body p-6">Discuss
    <small class="card-clr d-block mb-3"><br>Sed nec tincidunt erat. Duis nunc mi, dictum nec ligula quis, mollis condimentum odio. Mauris in orci id libero ultrices vestibulum. </small>
  </div>
</div>
    
       
      <!-- Card Four  -->
    <div class="card box creative-pro ">
  <img class="card-img-top" src="" alt="">
  <div class="card-body p-6">Revise
    <small class="card-clr d-block mb-3"><br>Curabitur dictum odio id sapien placerat lacinia. In volutpat a elit et luctus. </small>
   
  </div>
</div>
       
    
 
      <!-- Card Five -->
    <div class="card box creative-pro rounded-3x overflow-hidden w-md-50 w-lg-25">
  <img class="card-img-top" src="" alt="">
  <div class="card-body p-6">Approve
    <small class="card-clr d-block mb-3"><br>Curabitur dictum odio id sapien placerat lacinia. In volutpat a elit et luctus.  </small>
   
  </div>
</div>
   
    
    
      <!-- Card Six -->
    <div class="card box creative-pro rounded-3x overflow-hidden w-md-50 w-lg-25">
  <img class="card-img-top" src="" alt="">
  <div class="card-body p-6">Launch
    <small class="card-clr d-block mb-3"><br>Curabitur dictum odio id sapien placerat lacinia. In volutpat a elit et luctus. Proin eu pulvinar augue.  </small>
   
  </div>
</div>
    </div>
   </body>
</html>
              
            
!

CSS

              
                html{
  background-color:#000;
  height: 100%;
}

body {
    height:100%;
  background-color: #000;
  
}
.titles{ 
    color: #00FFF3;
   
}
.demoWrapper {
  width: 680px;
  height: 400px;
  -webkit-font-smoothing: antialiased;
  margin: 50px auto;
 /* padding: 1px;*/
    margin-bottom: 200px;
  background-color: #000;
   
    
}

.box {
  position: absolute;
  width: 180px;
  height: 180px;
  background-color: #06f;
  display: inline-block;
  margin: 10px 20px 50px 235px; 

  overflow:hidden;
}

.creative-pro{ 
    border: 1px solid #00fff3;
    color: #00FFF2;
   background: transparent;
    height: 600px;
}

.creative-pro:hover{
    cursor: pointer;
    box-shadow: 0 4px 8px 0 #00fff3, 0 6px 20px 0 #00fff3;
}
              
            
!

JS

              
                window.onload = function(){

var card = ".creative-pro",
    stage = ".demoWrapper";
   gsap.set(stage, {
  css: {
    perspective: 1100,
    transformStyle: "preserve-3d"
  }
});
card.each(function(index, element) {
  gsap.set(element, {
    css: {
      rotationY: index * 360 / 5,
      transformOrigin: "50% 50% -520"
    }
  });
  gsap.to(element, {duration: 20, yoyo: false, 
    css: {
      z:0.09,
      rotationY: "-=250"
    },
    repeat: -1, // 20
    ease: Linear.easeNone
  
                    
  });
});
  
};
              
            
!
999px

Console