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

              
                h1 Hand Drawn Buttons
button.but1 Button 1
button.but2 Button 2
button.but3 Button 3
button.but4 Button 4
button.but5 Button 5
button.but6 Button 6


svg(xmlns='http://www.w3.org/2000/svg' version='1.1').squigglysvg
  defs
    filter#squiggly-0
      feturbulence#turbulence(basefrequency='0.02' numoctaves='3' result='noise' seed='0')
      fedisplacementmap#displacement(in='SourceGraphic' in2='noise' scale='6')
    filter#squiggly-1
      feturbulence#turbulence(basefrequency='0.02' numoctaves='3' result='noise' seed='1')
      fedisplacementmap(in='SourceGraphic' in2='noise' scale='8')
    filter#squiggly-2
      feturbulence#turbulence(basefrequency='0.02' numoctaves='3' result='noise' seed='2')
      fedisplacementmap(in='SourceGraphic' in2='noise' scale='6')
    filter#squiggly-3
      feturbulence#turbulence(basefrequency='0.02' numoctaves='3' result='noise' seed='3')
      fedisplacementmap(in='SourceGraphic' in2='noise' scale='8')
    filter#squiggly-4
      feturbulence#turbulence(basefrequency='0.02' numoctaves='3' result='noise' seed='4')
      fedisplacementmap(in='SourceGraphic' in2='noise' scale='6')
    filter#squiggly-5
      feturbulence#turbulence(basefrequency='0.02' numoctaves='3' result='noise' seed='9')
      fedisplacementmap(in='SourceGraphic' in2='noise' scale='6')

              
            
!

CSS

              
                button {
  --clr: #F9F6EF;
  --fg: #1f2020;
  border: none;
  cursor: pointer;
  color: var(--fg);
  background: transparent;
  padding: .7em 1.2em;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: inherit;
  width: max-content;
  position: relative;
  text-align: center;
  &:before {
    --clrs1: color-mix(in lab, var(--clr), #0000 50%);
  --clrs2: color-mix(in lab, var(--clr), #0000 20%);
  --clrs3: color-mix(in lab, var(--clr), #0000 60%);
  --clrs4: color-mix(in lab, var(--clr), #0000 98%);
    position: absolute;
    content: '';
    inset: 0;
    padding: .1em;
    border: 4px double var(--clr);
    border-radius: .1em .2em / .5em .23em;
    z-index: -1;
    transition: .25s ease;
    background: //var(--fg)
      linear-gradient(178deg, 
        var(--clrs1),
        var(--clrs2) 20% 70%,
        var(--clrs3) 90%,
        var(--clrs4)) 0 0 / 100% .3rem;
    background-clip: content-box;
    
    
  }
  transition: .1s linear;
  &:active {
    translate: .05em .1em;
    filter: drop-shadow(-.1em -.1em .1em color-mix(in srgb, var(--clr), transparent 50%));;
  }
  &:active:before {
    filter: url("#squiggly-0");
  }
  &:focus {
    outline: 2px dashed color-mix(in srgb, var(--clr), transparent 90%);
    outline-offset: .5rem;
    border-radius: .25em;
  }
  filter: drop-shadow(.1em .1em .1em color-mix(in srgb, var(--clr), transparent 50%));
}
.but1:before {  
  filter: url("#squiggly-0"); 
}
.but1:active:before {
  filter: url("#squiggly-5");
}
.but2 {
  --clr: hsl(80 75% 75%);
  &::before{
    filter: url("#squiggly-1");
  }
  
}
.but3{
  --clr: hsl(180 75% 75%);
  &:before {
    filter: url("#squiggly-2");
}
}
.but4{
  --clr: hsl(240 75% 75%);
  &:before {
    filter: url("#squiggly-3");
  }
}
.but5{
  --clr: hsl(320 75% 75%);
  &:before {
    filter: url("#squiggly-4");
  }
}

.but6{
  --clr: hsl(0 75% 75%);
  &:before {
    filter: url("#squiggly-5");
  }
}



@import url('https://fonts.googleapis.com/css2?family=Edu+NSW+ACT+Foundation:wght@400..700&family=Indie+Flower&family=Merienda:wght@300..900&display=swap')
;

h1 {
  font-family: "Edu NSW ACT Foundation", cursive;
  color: #F9F3EE; 
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 500;
  font-size: 2.7rem;
}

.squigglysvg {
  display: hidden;
  position: absolute;
  width: 0;
  height: 0;
}
body {
  font-family: "Merienda", cursive;

  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-content: center;
  place-items: center;
  
  gap: 2em;
  background-color: #1f2020;
  background-image:
    radial-gradient(
      #535150,
      #1f2020
    );
}
button:nth-of-type(2n-1) {
  justify-self: right;
}
button:nth-of-type(2n) {
  justify-self: left;
}
              
            
!

JS

              
                
              
            
!
999px

Console