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='item item--1'></div>
<div class='item item--2'></div>
<div class='item item--3'></div>
<div class='item item--4'></div>
<div class='item item--5'></div>
<div class='item item--6'></div>
<div class='item item--7'></div>
<div class='item item--8'></div>
<div class='item item--9'></div>
<div class='item item--10'></div>
<div class='item item--11'></div>
<div class='item item--12'></div>
<div class='item item--13'></div>
<div class='item item--14'></div>
<div class='item item--15'></div>
<div class='item item--16'></div>
<div class='item item--17'></div>
<div class='item item--18'></div>
<div class='item item--19'></div>
<div class='item item--20'></div>
              
            
!

CSS

              
                .item {
	padding: 11.5%;
	margin: 1%;
	float: left;
  box-shadow: 3px 3px 4px rgba(0,0,0,0.6);

  &--1 {
    $color: #DA6527;
    background-image:
      repeating-radial-gradient(circle at 50% 50%, $color 25%, transparent 26%);
    background-size: 20px 20px;
  }
  
  &--2 {
    $color: #A59B52;
    background-image:
      repeating-radial-gradient(circle at 50% 50%, transparent 25%, $color 26%, $color 33%, transparent 34%);
    background-size: 30px 30px;
  }
  
  &--3 {
    $color: #6AA065;
    background-image:
      repeating-radial-gradient(circle at 50% 50%, $color 50%, transparent 55%);
    background-size: 30px 30px;
  }

  &--4 {
    $color: #4A4989;
    background-image:
      repeating-radial-gradient(circle at 60% 40%, $color 5%, $color 7%, transparent 12%);
    background-size: 50px 50px;
  }
  
  &--5 {
    $color: #983C38;
    background-image:
      repeating-radial-gradient(circle at 50% 50%, transparent 15%, $color 21%, transparent 22%);
    background-size: 25px 50px;
  }

  &--6 {
    $color: #299A60;
    background-image:
      repeating-radial-gradient(circle at 50% 50%, $color 20%, transparent 21%);
    background-size: 20px 40px;
  }
  
  &--7 {
    $color: #fff;
    background-color: #E4B11A;
    background-image:
      repeating-radial-gradient(circle at 50% 50%, $color 18%, transparent 20%);
    background-size: 51px 51px;
  }
  
  &--8 {
    $color: #348a8e;
    background-image:
      repeating-radial-gradient(circle at 50% 50%, transparent 49%, $color 50%, $color 60%, transparent 61%);
    background-size: 45px 15px;
  }
  
  &--9 {
    $color1: #a63c41;
    $color2: #4d499F;
    background-image:
      repeating-radial-gradient(circle at 50% 50%, transparent 15%, $color1 16%, $color2 26%, $color2 29%);
    background-size: 5px 60px;
  }
  
  &--10 {
    $color1: #FD6812;
    $color2: #30D841;
    background-image:
      repeating-radial-gradient(circle at 50% 50%, $color1 0%, transparent 2%, $color2 3%);
    background-size: 50px 25px;
  }
  
  &--11 {
    $color: #E04158;
    background-color: #fff;
    background-image:
      linear-gradient(0deg, transparent 50%, rgba($color,0.6) 50%),
      linear-gradient(90deg, transparent 50%, rgba($color,0.6) 50%);
    background-size: 30px 30px; 
  }
  
  &--12 {
    $color1: #386AD8;
    $color2: #E3506A;
    background-image:
      repeating-linear-gradient(45deg, transparent 5px, transparent 9px, $color1 10px, $color1 14px, transparent 15px, transparent 19px, $color2 20px, $color2 24px);
  }
  
  &--13 {
    $color: #72A9EB;
    background-image:
      radial-gradient(circle at 25% 25%, $color 10%, transparent 15%),
      radial-gradient(circle at 75% 75%, $color 10%, transparent 15%);
    background-size: 25px 25px;
  }
  
  &--14 {
    $color: #122556;
    background-image:
      linear-gradient(45deg, $color 25%, transparent 26%, transparent 74%, $color 75%),
      linear-gradient(-45deg, $color 25%, transparent 26%, transparent 74%, $color 75%);
    background-size: 30px 30px;
  }

  &--15 {
    $color1: #68782E;
    $color2: #B8B45F;
    background-image:
      linear-gradient(45deg, transparent 22%, $color1 23%, $color1 27%, transparent 28%),
      linear-gradient(-45deg, transparent 22%, $color2 23%, $color2 27%, transparent 28%);
    background-size: 30px 30px;
  }
  
  &--16 {
    $color: #A4D931;
    background-image:
      repeating-radial-gradient(circle at 25% 25%, transparent 19%, $color 20%, $color 34%, transparent 35%);
    background-size: 90px 90px;
  }
   
  &--17 {
    $color: #522;
    background-color: #d33;
    background-image:
      linear-gradient(45deg, transparent 0%, rgba(0,0,0,0.1) 100%);
    background-size: 30px 30px;
  }
  
  &--18 {
    $color: #fff;
    background-color: #B34BE0;
    background-image:
      radial-gradient(circle at 20% 80%, transparent 29%, $color 30%, $color 33%, transparent 34%),
      radial-gradient(circle at 80% 20%, transparent 29%, $color 30%, $color 33%, transparent 34%);
    background-size: 30px 30px;
  }

  &--19 {
    $color1: #FC237D;
    $color2: lighten($color1,20%);
    background-color: #222;
    background-image:
      linear-gradient(45deg, transparent 19%, $color1 20%, $color1 30%, transparent 31%),
      linear-gradient(-45deg, transparent 19%, $color1 20%, $color1 30%, transparent 31%),
      linear-gradient(45deg, transparent 29%, $color2 30%, $color2 40%, transparent 41%),
      linear-gradient(-45deg, transparent 29%, $color2 30%, $color2 40%, transparent 41%);
    background-size: 35px 35px;
  }
	
  &--20 {
    $color: #b5aa49;
    background-image:
      repeating-radial-gradient(ellipse at 0% 50%, transparent 15px, $color 20px, $color 20px, transparent 25px);
    background-size: 20px 12px;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console