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

              
                <div class="linearGradient"></div>
<div class="radialGradient"></div>
<div class="persentGradient"></div>
<div class="repeatGradient1"></div>
<div class="repeatGradient2"></div>
<div class="colorful-circle"></div>
<div class="Iran-flag"></div>
<div class="France-flag"></div>
<div class="Conic-gradient1"></div>
<div class="Conic-gradient2"></div>
<div class="Conic-gradient3"></div>
<div class="Conic-gradient4"></div>
<div class="Conic-gradient5"></div>
<div class="Conic-gradient6"></div>
<div class="Conic-gradient7"></div>
<div class="Conic-gradient8"></div>
<div class="Conic-gradient9"></div>
<div class="circle"></div>
<div class="Square"></div>
              
            
!

CSS

              
                body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.linearGradient {
  height: 25vmin;
  width: 25vmin;
  background: linear-gradient(to top left, red, yellow, pink, green, purple, orange, blue);
}

.radialGradient {
  height: 25vmin;
  width: 25vmin;
  background: radial-gradient(circle, red 50%, yellow, orchid, green, purple, orange, blue);
}

.persentGradient {
  height: 25vmin;
  width: 25vmin;
  background: radial-gradient(circle, red, yellow, orchid, green, purple, orange, blue);
}

.repeatGradient1 {
  height: 25vmin;
  width: 25vmin;
  background: repeating-radial-gradient(red, yellow 10%, green 15%); 
}

.repeatGradient2 {
  height: 25vmin;
  width: 25vmin;
  background: repeating-linear-gradient( 45deg, #ff8a00, #ff8a00 10px, #e52e71 10px, #e52e71 20px); 
}

.colorful-circle {
  height: 25vmin;
  width: 25vmin;
  background: radial-gradient(circle at center, red 0,blue, green 100%);
}

.Iran-flag {
  height: 25vmin;
  width: 25vmin;
  background: linear-gradient(#11ba22 33%, #fff 33%, 66%, #ff0000 66%); 
}

.France-flag {
  height: 25vmin;
  width: 25vmin;
  background: linear-gradient( 90deg, #004fcc 33%, #fff 33%, 66%, #ff0000 66%);
}

.Conic-gradient1 {
  height: 25vmin;
  width: 25vmin;
  border-radius: 50%;
  background: conic-gradient(#ff8a00, #e52e71);
}

.Conic-gradient2 {
  height: 25vmin;
  width: 25vmin;
  border-radius: 50%;
  background: conic-gradient( at 30% 30%, #ff8a00, #e52e71);
}

.Conic-gradient3 {
  height: 25vmin;
  width: 25vmin;
  border-radius: 50%;
  background: conic-gradient(from 125deg, #ff8a00, #e52e71);
}

.Conic-gradient4 {
  height: 25vmin;
  width: 25vmin;
  border-radius: 50%;
  background: conic-gradient(from -45deg at 100% 100%, #ff8a00, #e52e71);
}

.Conic-gradient5 {
  height: 25vmin;
  width: 25vmin;
  border-radius: 50%;
  background: conic-gradient(#ff8a00 10%, #f589d4 50%, #e52e71 90%);
}

.Conic-gradient6 {
  height: 25vmin;
  width: 25vmin;
  border-radius: 50%;
  background: conic-gradient(#ff8a00 0deg, #e52e71 1turn);
}

.Conic-gradient7 {
  height: 25vmin;
  width: 25vmin;
  border-radius: 50%;
  background: conic-gradient(#ff8a00, #e52e71, #ff8a00);
}

.Conic-gradient8 {
  height: 25vmin;
  width: 25vmin;
  border-radius: 50%;
  background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
}

.Conic-gradient9 {
  height: 25vmin;
  width: 25vmin;
  border-radius: 50%;
  background: conic-gradient(lime 40%, yellow 0 70%, red 0);
}

.circle {
  width: 24vmin;
  height: 24vmin;
  border: 2px solid black;
  background: radial-gradient(8em 8em at 50% 50%, red 30%, yellow 30% 35%, transparent 30%);
}

.Square {
  width: 24vmin;
  height: 24vmin;
  border: 2px solid black;
  background-repeat: no-repeat;
  background: linear-gradient(60deg, red 62%, transparent 63%) 50% 50% / 5em 5em;
}
              
            
!

JS

              
                
              
            
!
999px

Console