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. 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

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

              
                .container.text-center
  .row
    .col-sm-12
      h1 Gradient icons
  .row
    .col-sm-2.col-sm-offset-3
      i.fas.fa-user.fa-5x.icon-blue
    .col-sm-2
      i.fas.fa-frog.fa-5x.icon-green
    .col-sm-2
      i.fas.fa-certificate.fa-5x.icon-orange
  .row
    .col-sm-2.col-sm-offset-3
      i.fas.fa-heart.fa-5x.icon-red
    .col-sm-2
      i.fas.fa-football-ball.fa-5x.icon-brown
    .col-sm-2
      i.fas.fa-fighter-jet.fa-5x.icon-gray
  .row
    .col-sm-2.col-sm-offset-3
      i.fas.fa-cookie.fa-5x.icon-beige
    .col-sm-2
      i.fas.fa-globe.fa-5x.icon-greenblue
    .col-sm-2
      i.fas.fa-cube.fa-5x.icon-purple
              
            
!

CSS

              
                //This mixin does the magic
.icon-gradient() {
  color:transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.icon-blue {
  background-image: linear-gradient(45deg, #4481eb 0%, #04befe 100%);
  .icon-gradient();
}
.icon-green {
  background-image: linear-gradient(315deg, #9be15d 0%, #00e3ae 100%);
  .icon-gradient();
}
.icon-orange {
  background-image: linear-gradient(135deg, #FDD819 10%, #E80505 100%);
  .icon-gradient();
}
.icon-red {
  background-image: linear-gradient(45deg, #FF512F 20%, #DD2476 100%);
  .icon-gradient();
}
.icon-brown {
  background-image: linear-gradient(135deg, #FFAA85 10%, #B3315F 100%);
  .icon-gradient();
}
.icon-gray {
  background-image: linear-gradient(135deg, #616161 0%, #9bc5c3 100%);
  .icon-gradient();
}
.icon-greenblue {
  background-image: linear-gradient(0deg, #209cff 0%, #68e0cf 100%);
  .icon-gradient();
}
.icon-beige {
  background-image: linear-gradient(315deg, #772f1a 0%, #f2a65a 74%);
  .icon-gradient();
}
.icon-purple {
  background-image: linear-gradient(to top, #b224ef 0%, #7579ff 100%);
  .icon-gradient();
}


i {
  margin-top:50px;
}
              
            
!

JS

              
                
              
            
!
999px

Console