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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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="container">
  <button type="button" class="btn1" name="button">button</button>
    <button type="button" class="btn2" name="button">button</button>
      <button type="button" class="btn3" name="button">hover</button>
      <button type="button" class="btn4" name="button">button</button>

  <button type="button" class="btn5" name="button">button
      <span class="btn5over">
  </span></button>

        <button type="button" class="btn6" name="button">button</button>
           <button type="button" class="btn7" name="button"><span>hover</span></button>
           <button type="button" class="btn8" name="button"><span>hover</span></button>
            <button type="button" class="btn9" name="button"><span>hover</span></button>

                  <button type="button" class="btn11" name="button">button</button>
                
              
            
!

CSS

              
                
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab&display=swap');

body{

  margin: 0;
background: #f8f8f8;
}
*{
  font-family: 'Roboto Slab', serif;
}

.container{
margin-top: 10%;
margin-left:20%;
margin-right:auto;

}
button{
width: 200px!important;
padding: 10px 40px;
  outline: none;
  display:flex;
  display: inline-block;
  margin:15px;
font-size: 18px;
position: relative!important;
text-transform: uppercase;
}

.btn1{
cursor: pointer;
background: #FE0000;
border:none;
color: white;
}

.btn2{



cursor: pointer;
background-image: repeating-linear-gradient(to right,#00D6FE,#FE6F00);
border:none;

color: white;
}
.btn3{



cursor: pointer;
background: white;
border:1.8px solid lightgrey;

color: black;

}
.btn3:hover{
  color: white;
animation: moveing;
animation-duration: .3s;
 animation-iteration-count: infinite;
animation-timing-function:ease-in-out;
}
@keyframes moveing {
  0%{
background-image: linear-gradient(to left,black,red);
  transform: translateX(-100);
  }
  100%{

  transform: translateX(100);
  }


}
.btn4{


cursor: pointer;
background: lightgrey;
border:none;
border-radius: 50px;

color: white;

  background-image: linear-gradient(to bottom left,#0085FE,#FE007B);
}

.btn4:hover{
color: white;
}

.btn5{



  cursor: pointer;
position: relative;
  border:1.8px solid lightgrey;
  border-radius: 50px;

  color: black;
z-index:9999;
background: transparent;

}

.btn5over{
  position: absolute;
bottom: 0;
left: 0;
color: black;
z-index: -999;
border-bottom-left-radius: 50px;
border-bottom-right-radius: 50px;
  background:tomato;
  width: 100%;
  height: 50%;


}

.btn6{



cursor: pointer;
  background-image: repeating-linear-gradient(#7800FE 0%, #FEC400 20%);
border:none;

color: white;
background-image:
}
.btn7{



cursor: pointer;
background:#FE0096;
border:none;

color: white;

}
.btn7 span{
  display: inline-block;
  position: relative;
  transition: 0.5s;
}
.btn7 span:after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.btn7:hover span {
  padding-right: 25px;
}

.btn7:hover span:after {
  opacity: 1;
  right: 0;
}
.btn8{


cursor: pointer;
background:#363636;
border:none;

color: white;
}
.btn8:hover{
  background-image: linear-gradient(90deg, #E56E0A 0%, #FFCF00 49%, #0AE5B8 80%, #E50AD4 100%);
  animation:btnmove .5s linear infinite;
}
@keyframes btnmove {
  to{
     background-position:30vw;
  }
}

.btn9{


cursor: pointer;
background:#0ACFE5;
border:none;

color: black;
}
.btn9:hover{
  background-image: linear-gradient(to bottom right,#f8f8f8,#0ACFE5,pink);
  animation:btnmove .5s linear infinite;
}
@keyframes btnmove {
  to{
     background-position:30vw;
  }
}
.btn11{
  background: white;
  cursor: pointer;
border:none;
box-shadow: 0px 1px 2px #B8B6B6,
0px 2px 2px #B8B6B6,
0px 3px 2px #B8B6B6,
0px 4px 2px #B8B6B6,
0px 5px 2px #B8B6B6,
0px 6px 2px #C3BEBE,
0px 7px 2px #C3BEBE,
0px 8px 2px #B8B6B6
;
}

              
            
!

JS

              
                
              
            
!
999px

Console