Pen Settings



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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.


                <a href="" target="_blank">CSS Heart Animations</a>
<div class="items">
<i class="Heart1 fas fa-heart"></i>
<i class="Heart2 fas fa-heart"></i>
<i class="Heart3 fas fa-heart"></i>
<i class="Heart4 fas fa-heart"></i>
<i class="Heart5 fas fa-heart"></i>
<i class="Heart6 fas fa-heart"></i>


  margin:10px auto;
  color: #FF5252;

  animation: anime1 3s reverse infinite;

@keyframes anime1{
0% { transform: scale(1); }
60% { transform: scale(1); }
70% { transform: scale(1.3); }
80% { transform: scale(1); }
90% { transform: scale(1.3); }
100% { transform: scale(1); }

  animation: anime2 1s alternate infinite;

@keyframes anime2{
0% { transform: scale(0.2); }
100% { transform: scale(1); }

  animation: anime3 0.2s alternate infinite;

@keyframes anime3{
  0% {transform: translateY(0px);}
  100% {transform: translateY(-10px);}

  animation: anime4 1.5s alternate infinite;

@keyframes anime4{
  0% {transform: rotateY(0deg);}
  100% {transform: rotateY(360deg);}

  animation: anime5 1.5s alternate infinite;

@keyframes anime5{
  0% {color:#FF5252;}
  100% {color:#40C4FF;}

  animation: anime6 2s alternate infinite;

@keyframes anime6{
  0% {color:#FF5252;}
  20% {color:#EEFF41;}
  40% {color:#FF9E80;}
  60% {color:#FF9100;}
  80% {color:#00E676;}
  100% {color:#40C4FF;}