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

              
                <button>button</button>
              
            
!

CSS

              
                @property --d{
  syntax: '<angle>';
  inherits: true;
  initial-value: 0deg;
}


button {
  width: 200px;
  aspect-ratio:1;
  font-size:30px;
  color: #fff;
  background: none;
  border: none;
  border-radius: 20px; 
  position: relative;
  z-index: 0;
  transition: .3s;
  cursor: pointer;
}
button:before {
  content: "";
  position: absolute;
  inset: -8px;
  padding: 8px;
  border-radius: 28px; 
  background: conic-gradient(from var(--d,0deg),
        #ff53bb ,
        #0000 30deg 120deg,
        #00f8d3 150deg 180deg,
        #0000 210deg 300deg,
        #ff53bb 330deg
    );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: intersect
}
button:after {
  content: "";
  position: absolute;
  inset: -100px;
  background:
    radial-gradient(80px at left  150px top    120px,#ff53bb 98%,#0000),
    radial-gradient(80px at right 150px bottom 120px,#00f8d3 98%,#0000);
  filter: blur(60px);
  opacity: .5;
}

button:before,
button:after {
  transition:.5s, 99999s 99999s transform, 99999s 99999s --d;
}
button:hover {
  box-shadow: 0 0 0 1px #666;
}


button:hover:after {
  transform: rotate(3600deg);
  transition: .5s,60s linear transform;
}
button:hover:before {
  --d: 3600deg;
  transition: .5s,60s linear --d;
}
button:hover:before {
  background-color: #222;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-content: center;
  grid-auto-flow: column;
  background-color: #1b1b1c;
}
              
            
!

JS

              
                
              
            
!
999px

Console