Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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 id="wrap">
  <div id="simple" class="sample">Simple Gradient - Простой градиент</div>
  <div class="sample" id="simpleDest">
    Simple Gradient at top - Простой градиент с направлением сверху
  </div>
   <div class="sample" id="destGradient">
   Направление градиента указано как 30% 150px
  </div>
   <div class="sample" id="colors">
    3 colors Gradient - Градиент, состоящий из 3-х цветов
  </div>
  <div class="sample" id="circle">
    Circle Gradient - Градиент на основе круга
  </div>
  <div class="sample" id="ellipse">
    Ellipsed Gradient - Градиент на основе эллипса
  </div>
  <div class="sample" id="ellipse2">
    Default Ellipsed Gradient - Градиент на основе эллипса по умолчанию
  </div>
</div>

              
            
!

CSS

              
                #wrap {width: 96%; 
  margin: 20px auto;
  font-family: Verdana, Geneva, sans-serif;
}
.sample {
  border: 2px solid #444; 
  padding: 20px; 
  margin: 20px 0;
  width: 300px;
  height:200px;
  margin-right: 10px;
  display: inline-block;
  vertical-align: top;
}
#simple {
  background-image: radial-gradient(#fff, #000);
}
#simpleDest {
  background-image: radial-gradient(at top, #fff, #000);
}
#destGradient {
  background: radial-gradient(at 30% 150px, #fff, #2a4 60%);
}
#colors{
  background-image: radial-gradient(at left top, #fff, #ffc4ee, #000);
}
#circle{
  background-image: radial-gradient(circle at right center, #fff, #22aaff 30%, #009 80%);
}
#ellipse{
  background-image: radial-gradient(ellipse at top center, #ff0 50%, #f00 60%);
}
#ellipse2{
  background-image: radial-gradient(#ff0 50%, #f00 70%);
}
              
            
!

JS

              
                
              
            
!
999px

Console