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.

            
              <link href='//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css' rel='stylesheet'/>
<div class="container">
  <h2>Tombol Demo dan Download</h2>
<div style="text-align: center;">
  <ul class="button2">
    <li><a class="demo" href="#" target=www.sobatblog.com>Demo Link</a></li>
    <li><a class="download" href="#" target="_blank">Download Link</a></li>
  </ul>
</div>
</div>


            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700);
a:link {
  text-decoration: none;
  outline: none;
  transition: all 0.25s;
}

a:visited,
a:link:hover,
a:visited:hover {
  text-decoration: none;
}

body {
  background: #eee none repeat scroll top left;
  color: #444;
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  position: relative;
  line-height: normal;
}

.container {
  background: #fff;
  max-width: 320px;
  margin: 4% auto;
  padding: 20px;
  font-family: 'Open Sans', sans-serif;
  border-radius: 5px;
  overflow: hidden;
}

.container h2 {
  background: #fff;
  position: relative;
  overflow: hidden;
  margin: 0 0 20px 0;
  font-size: .8em;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  vertical-align: middle;
  padding: 0 12px 20px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.button2 {
  float: left;
  list-style: none;
  text-align: center;
  width: 95%;
  margin: 10px;
  padding: 2px;
  font-size: 14px;
  clear: both;
}

.button2 ul {
  margin: 0;
  padding: 0
}

.button2 li {
  display: inline;
  margin: 5px;
  padding: 0;
  list-style: none;
}

.button2 li a.demo,
.button2 li a.download {
  position: relative;
  padding: 14px 48px 14px 16px;
  background: #f39c12;
  display: block;
  color: #fff!important;
  font-weight: 700;
  font-size: 14px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .2px;
  border-radius: 3px;
  box-shadow: 0 1px rgba(0, 0, 0, 0.1);
  line-height: normal;
  transition: all .3s;
  max-width: 170px;
  margin: auto;
  overflow: hidden;
}

.button2 li a.download {
  background: #3498db;
}

.button2 li a.demo:hover,
.button2 li a.download:hover {
  background: #666;
}

.button2 li a.demo:active,
.button2 li a.download:active {
  cursor: pointer;
}

.button2 li a.demo:after,
.button2 li a.download:after {
  content: '\F054';
  background: rgba(0, 0, 0, 0.1);
  position: absolute;
  right: 0;
  top: 0;
  font-weight: normal;
  display: inline-block;
  margin: 0 0 0 10px;
  color: #fff;
  padding: 16px 24px;
  font-family: fontawesome;
  transition: all .3s;
}

.button2 li:hover a.demo:after,
.button2 li:hover a.download:after {
  background: transparent;
  -webkit-animation: bounceright .3s alternate ease infinite;
  animation: bounceright .3s alternate ease infinite;
}

@-webkit-keyframes bounceright {
  from {
    -webkit-transform: translateX(0);
  }
  to {
    -webkit-transform: translateX(3px);
  }
}

@keyframes bounceright {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(3px);
  }
}
            
          
!
            
              //by http://www.sobatblog.com


            
          
!
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