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

              
                <div class="buttons">
  <button class="btn btn-gradient"> hover me </button>
 <button class="btn btn-gradient gradient2"> hover me </button>
 <button class="btn btn-gradient gradient3"> hover me </button>
 <button class="btn btn-gradient gradient4"> hover me </button>
</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Muli:300,400,700,900');

body{
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    background: #f1f3f9;
	display: flex;
	width: 100vw;
	height: 100vh;
    font-family: "Muli", Arial, sans-serif;
}

.buttons{
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.buttons > button{
  margin-right: 30px;
}

.btn-gradient{
background: #1462ff;
    color: white;
    border-radius: 12px;
    padding: 12px 48px;
    box-shadow: 0 6px 30px -10px #4a74c9;
    transition: all 0.5s ease;
    border: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-gradient:hover{
  box-shadow: 0 0px 0px 0 rgba(0, 40, 120, 0);
  transform: scale(0.930);
}

.gradient2{
  background-image: linear-gradient(60deg, #4aa5fb 10%, #1ccafa 50%, #00e1f9 100%);
border-top-left-radius: 20px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 0px;
}

.gradient2:hover{
border-top-left-radius: 0px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 12px;
}

.gradient3{
  background-image: linear-gradient(60deg, #8c38fe 10%, #b72ee4 50%, #9c66e5 100%);
  box-shadow: 0 2px 25px 0 rgba(111, 30, 138, .35);
}

.gradient3:hover{
  box-shadow: 0 10px 30px #8c38fe, 0 5px 0 0 #9c66e5;
    transform: translateY(-5px);
}

.gradient4{
  background-image: linear-gradient(60deg, #43fa84 10%, #3afec0 50%, #38fee3 100%);
  box-shadow: 0 2px 25px 0 rgba(56, 254, 227, .35);
}

.gradient4:hover{
 box-shadow: 0px 10px 12px 0px #48f184b5, 0px 8px 2px 0 #57b396;
 transform: rotateX(50deg);
}
              
            
!

JS

              
                
              
            
!
999px

Console