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

              
                <body>
  
  <div class="container linear">
    <p>HELLO<br>WORLD</p>
    <div class="background linear">background</div>
  </div>

  <div class="container conic">
    <p>HELLO<br>WORLD</p>
    <div class="background conic">background</div>
  </div>

  <div class="container one">
    <p>HELLO<br>WORLD</p>
    <div class="background one">background</div>
  </div>

</body>
              
            
!

CSS

              
                body {
  background: #eee;
}

.container, .background {
  display: flex;
  justify-content: center;
  align-items: center;
}

p {
  width: 160px;
  margin: 10px auto;
  font-size: 40px;
  font-weight: 700;
  color: transparent;
  line-height: 2;
  animation: anim 5s linear infinite;
}

.linear p {
  background: linear-gradient(135deg, #00dbde 0%, #fc00ff 100%);
  -webkit-background-clip: text; 
  background-clip: text;
}

.conic p {
  background: conic-gradient(#ecacb5 0deg, #fff7aa 72deg, #91dbb9 144deg, #9acde7 216deg, #dba6cc 288deg, #ecacb5);
  -webkit-background-clip: text;
  background-clip: text;
}

.one p {
  background: #00f;
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes anim {
  0% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(180deg); }
  100% { filter: hue-rotate(360deg); }
}

.background {
  margin: 10px auto;
  width: 160px;
  height: 160px;
  color: #fff;
}

.background.linear {
  background: linear-gradient(135deg, #00dbde 0%, #fc00ff 100%);
}

.background.conic {
  background: conic-gradient(#ecacb5 0deg, #fff7aa 72deg, #91dbb9 144deg, #9acde7 216deg, #dba6cc 288deg, #ecacb5);
}

.background.one {
  background: #00f;
}
              
            
!

JS

              
                
              
            
!
999px

Console