Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's 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 it's URL and the proper URL extention.

+ 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

              
                <div class="card bg-white py-6 px-6 flex items-center rounded-xl my-3">
  <span class="text-xs font-medium bg-primary py-2 px-4 rounded-full text-white tracking-widest">CPA</span>
  <p class="text-sm font-medium mx-6">Certified Public Accountant</p>
  <svg class="cursor-pointer" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
    <circle opacity="0.5" cx="12" cy="12" r="11.5" fill="#EBEBF9" stroke="#8E94A7" />
    <path d="M12.0001 12L14.8285 9.17157M12.0001 12L9.17163 14.8284M12.0001 12L9.17163 9.17157M12.0001 12L14.8285 14.8284" stroke="#8E94A7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
  </svg>
</div>
<div class="card bg-green-400 py-6 px-6 flex items-center rounded-xl my-3">
  <span class="text-xs font-medium bg-primary py-2 px-4 rounded-full text-white tracking-widest">CPA</span>
  <p class="text-sm font-medium mx-6 text-white">Certified Public Accountant</p>
  <svg class="cursor-pointer" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
    <circle opacity="0.5" cx="12" cy="12" r="11.5" fill="#fff" stroke="#fff" />
    <path d="M12.0001 12L14.8285 9.17157M12.0001 12L9.17163 14.8284M12.0001 12L9.17163 9.17157M12.0001 12L14.8285 14.8284" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
  </svg>
</div>
<div class="card bg-red-500 py-6 px-6 flex items-center rounded-xl my-3">
  <span class="text-xs font-medium bg-primary py-2 px-4 rounded-full text-white tracking-widest">CPA</span>
  <p class="text-sm font-medium mx-6 text-white">Certified Public Accountant</p>
  <svg class="cursor-pointer" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
    <circle opacity="0.5" cx="12" cy="12" r="11.5" fill="#fff" stroke="#fff" />
    <path d="M12.0001 12L14.8285 9.17157M12.0001 12L9.17163 14.8284M12.0001 12L9.17163 9.17157M12.0001 12L14.8285 14.8284" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
  </svg>
</div>
<div class="card bg-blue-600 py-6 px-6 flex items-center rounded-xl my-3">
  <span class="text-xs font-medium bg-white py-2 px-4 rounded-full text-primary tracking-widest">CPA</span>
  <p class="text-sm font-medium mx-6 text-white">Certified Public Accountant</p>
  <svg class="cursor-pointer" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
    <circle opacity="0.5" cx="12" cy="12" r="11.5" fill="#fff" stroke="#fff" />
    <path d="M12.0001 12L14.8285 9.17157M12.0001 12L9.17163 14.8284M12.0001 12L9.17163 9.17157M12.0001 12L14.8285 14.8284" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
  </svg>
</div>
<div class="card bg-yellow-300 py-6 px-6 flex items-center rounded-xl my-3">
  <span class="text-xs font-medium bg-yellow-500 py-2 px-4 rounded-full text-white tracking-widest">CPA</span>
  <p class="text-sm font-medium mx-6">Certified Public Accountant</p>
  <svg class="cursor-pointer" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
    <circle opacity="0.5" cx="12" cy="12" r="11.5" fill="#EBEBF9" stroke="#8E94A7" />
    <path d="M12.0001 12L14.8285 9.17157M12.0001 12L9.17163 14.8284M12.0001 12L9.17163 9.17157M12.0001 12L14.8285 14.8284" stroke="#8E94A7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
  </svg>
</div>
<div class="card bg-sky-500 py-6 px-6 flex items-center rounded-xl my-3">
  <span class="text-xs font-medium bg-primary py-2 px-4 rounded-full text-white tracking-widest">CPA</span>
  <p class="text-sm font-medium mx-6 text-white">Certified Public Accountant</p>
  <svg class="cursor-pointer" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
    <circle opacity="0.5" cx="12" cy="12" r="11.5" fill="#fff" stroke="#fff" />
    <path d="M12.0001 12L14.8285 9.17157M12.0001 12L9.17163 14.8284M12.0001 12L9.17163 9.17157M12.0001 12L14.8285 14.8284" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
  </svg>
</div>


<button class="toggle fixed top-3 left-2 py-2 px-3  bg-blue-500 text-white font-medium rounded-lg" >animate</button>
              
            
!

CSS

              
                .bg-primary{
  background: #0346f2;
}
.text-primary{
 color:#0346F2; 
}

.bg-sky-500{
  background: rgba(14, 165, 233)
}
body {
  display: flex;
  padding: 30px;
  align-items: flex-end;
  justify-content: flex-end;
  flex-direction: column;
  min-height: 100vh;
  overflow-x:hidden;
  background-color: #E7E9F0;
}

              
            
!

JS

              
                
function animate(){ 
  gsap.fromTo(".card", {x:900,opacity:.4}, {x:0,opacity:1});

}


document.querySelector(".toggle").onclick = animate;
              
            
!
999px

Console