Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              .pattern
.pattern
.pattern
.pattern
.pattern
.pattern
.pattern
.pattern
.pattern
.pattern
.pattern
.pattern
.pattern
.pattern
.pattern
.pattern
.pattern
.pattern
.pattern
.pattern
.pattern
            
          
!
            
              body{
  background: #ccc;
}

.pattern{
  width: 200px;
  height: 200px;
  margin: 15px;
  box-shadow: 2px 2px 10px #000;
  border-radius: 15px;
  border: solid 10px rgba(0, 0, 0, .3);
  display: inline;
  float: left;
  cursor: pointer;
  
}
.pattern:nth-child(1){
  background:
    linear-gradient(-45deg, #000 5px, transparent 50px);
  background-color: #444;
  background-size: 50px 50px;
  
}

.pattern:hover{
  transform: scale(1.1);
}

.pattern:nth-child(2){
  background:
    radial-gradient(#fff 8px, transparent 10px);
  background-color: #111;
  background-size: 50px 50px;
}

.pattern:nth-child(3){
  background:
    radial-gradient(#fff 3px, transparent 5px, #fff 7px, transparent 9px, #fff 11px, transparent 13px, #fff 15px, transparent 17px, #fff 19px, transparent 21px, #fff 23px, transparent 25px, #fff 27px, transparent 29px, #fff 31px, transparent 33px);
  background-color: #111;
  background-size: 30px 30px;
}

.pattern:nth-child(4){
  background:
    linear-gradient(45deg, #fff 3px, transparent 5px, #fff 7px, transparent 9px, #fff 11px, transparent 13px, #fff 15px, transparent 17px, #fff 19px, transparent 21px, #fff 23px, transparent 25px, #fff 27px, transparent 29px, #fff 31px, transparent 33px);
  background-color: #111;
  background-size: 50px 50px;
}

.pattern:nth-child(5){
  background:
    linear-gradient(#fff 3px, transparent 5px, #fff 7px, transparent 9px, #fff 11px, transparent 13px, #fff 15px, transparent 17px, #fff 19px, transparent 21px, #fff 23px, transparent 25px, #fff 27px, transparent 29px, #fff 31px, transparent 33px);
  background-color: #111;
  background-size: 50px 40px;
}

.pattern:nth-child(6){
  background:
    linear-gradient(-0deg, #fff 3px, transparent 5px, #fff 7px, transparent 9px, #fff 11px, transparent 13px, #fff 15px, transparent 17px, #fff 19px, transparent 21px, #fff 23px, transparent 25px, #fff 27px, transparent 29px, #fff 31px, transparent 33px);
  background-color: #111;
  background-size: 40px 50px;
}

.pattern:nth-child(7){
  background:
    linear-gradient(90deg, #fff 3%, transparent 5%, #fff 7%, transparent 9%, #fff 11%, transparent 13%, #fff 15%, transparent 17%, #fff 19%, transparent 21%, #fff 23%, transparent 25%, #fff 27%, transparent 29%, #fff 31%, transparent 33%);
  background-color: #111;
  background-size: 100px 40px;
}

.pattern:nth-child(8){
  background:
    radial-gradient(#fff 20%, transparent 50%), 
    linear-gradient(45deg, #fff 10%, transparent 30%);
  background-color: #111;
  background-size: 15px 15px;
}

.pattern:nth-child(9){
  background: 
    linear-gradient(90deg, #fff 5%, #000  );
  background-color: #111;
  background-size: 15px 15px;
}

.pattern:nth-child(10){
  background: 
    linear-gradient(45deg, #fff 5%, #000  );
  background-color: #111;
  background-size: 15px 15px;
}

.pattern:nth-child(11){
  background: 
    radial-gradient(#fff 5%, #000 40%);
  background-color: #111;
  background-size: 25px 25px;
}

.pattern:nth-child(12){
  background: 
    linear-gradient(45deg, #fff 5%, #111 50%, transparent 40%), 
    linear-gradient(-45deg, #111 5%, #fff 50%, transparent 40%);
  background-color: #111;
  background-size: 20px 20px;
}

.pattern:nth-child(13){
  background: 
    linear-gradient(#fff 5%, #111 10%, transparent 40%),
    linear-gradient(0deg, #fff 5%, #111 10%, transparent 40%),
    radial-gradient(#111 10%, #fff 20%, transparent 30%);
  background-color: #111;
  background-size: 25px 25px;
}

.pattern:nth-child(14){
  background: 
    radial-gradient(#fff 7%, #111 10%, transparent 40%),
    linear-gradient(45deg, #fff 5%, #111 10%, transparent 10%, transparent 90%, #fff 95%);
  background-color: #111;
  background-size: 50px 50px;
}

.pattern:nth-child(15){
  background: 
    radial-gradient(#fff 17%, #111 20%, transparent 40%),
    linear-gradient(45deg, #fff 7%, #111 10%, transparent 10%, transparent 90%, #fff 95%),
    linear-gradient(-45deg, #fff 7%, #111 10%, transparent 10%, transparent 90%, #fff 95%);
  background-color: #111;
  background-size: 40px 40px;
}

.pattern:nth-child(16){
  background:
    radial-gradient(#111 8px, #fff 10px, #fff 15px, transparent 17px),
    radial-gradient(#111 28px, transparent 29px),
    linear-gradient(45deg, #fff 48px, transparent 29px);
  background-color: #444;
  background-size: 50px 50px;
  
}

.pattern:nth-child(17){
  background:
    radial-gradient(transparent 10px, #000 12px, #fff 15px, transparent 17px),
    linear-gradient(transparent 10px, #111 12px, #fff 15px, transparent 17px),
    linear-gradient(0deg, transparent 10px, #111 12px, #fff 15px, transparent 17px);
  background-color: #111;
  background-size: 28px 28px;
  
}

.pattern:nth-child(18){
  background:
    radial-gradient(transparent 8px, #000 5px, #fff 12px, transparent 15px),
    linear-gradient(transparent 15px, #111 18px, #fff 21px, transparent 23px),
    linear-gradient(0deg, transparent 15px, #111 18px, #fff 21px, transparent 23px);
  background-color: #111;
  background-size: 40px 40px;
}

.pattern:nth-child(19){
  background:
    linear-gradient(-15deg, transparent 15px, #111 18px, #fff 21px, transparent 23px),
    linear-gradient(15deg, transparent 15px, #111 18px, #fff 21px, transparent 23px);
  background-color: #111;
  background-size: 25px 92px;
}

.pattern:nth-child(20){
  background:
    linear-gradient(-15deg, transparent 15px, #111 18px, #fff 21px, transparent 23px),
    linear-gradient(75deg, transparent 15px, #111 18px, #fff 21px, transparent 23px),
    linear-gradient(-75deg, transparent 15px, #111 18px, #fff 21px, transparent 23px),
    linear-gradient(15deg, transparent 15px, #111 18px, #fff 21px, transparent 23px);
  background-color: #111;
  background-size: 35px 35px;
}

.pattern:nth-child(21){
  width: 100%;
  height: 200px;
  border: none;
  box-shadow: none;
  
}

.pattern:active{
  width: 100%;
  height: 3000px;
  border: solid 10px #000;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99999;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console