Pen Settings



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


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


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.


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.


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



                #wrap {width: 96%; 
  margin: 20px auto;
  font-family: Verdana, Geneva, sans-serif;
.sample {
  border: 2px solid #444; 
  padding: 20px; 
  margin: 20px 0;
  width: 300px;
  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%);
  background-image: radial-gradient(at left top, #fff, #ffc4ee, #000);
  background-image: radial-gradient(circle at right center, #fff, #22aaff 30%, #009 80%);
  background-image: radial-gradient(ellipse at top center, #ff0 50%, #f00 60%);
  background-image: radial-gradient(#ff0 50%, #f00 70%);