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 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

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

              
                h1 Dogecoin Button ! wow

div.btn-dogecoin(data-address="DKVtwbh8YWrXtn5qz8DTB9ZamoYXneKn9F")
div.btn-dogecoin.black.donate(data-address="DKVtwbh8YWrXtn5qz8DTB9ZamoYXneKn9F")

h1 much useful, such easy
p.wow This is my actual dogecoin address so you can donate if you want.
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Montserrat);

.btn-dogecoin{
  font-size: 14px;
  white-space: nowrap;
  position: relative;
  overflow:hidden;
  cursor:pointer;
  font-family: 'Montserrat';
	width:160px;
  height:45px;
	padding: 5px 10px;
	border-radius:5px;
	border:1px solid #f8e9c0;
	background-image:linear-gradient(#f4ca5d, #f4b840);
  color:#333;
  text-transform:uppercase;
  transition: width .35s ease;
  span{
    display: block
  }
  .currency{
    font-size: 1.1em;
  }
  .currency:before{
    content:'Pay with';
    font-size: .65em;
    display: block;
  }
  .symbol{
    transition: all .2s ease;
    font-size: 2.3em;
    border: 2px solid #333;
    border-radius: 360px;
    padding: 4px;
    width: 33px;
    height: 33px;
    text-align: center;
    line-height: 1em;
    margin-right:5px;
  }
  p {
    transition: all .2s ease;
    padding: 0;margin: 0;
  }
  .symbol,p{
    display: inline-block;
    white-space: nowrap;
  }
  &:hover{
    p{transform:translateX(120px);}
    .symbol{transform:translateX(60px);}
  }
  &.opened{
    &:hover{
      p{transform:inherit;cursor:text;}
      .symbol{transform:inherit;}      
    }
    width:390px;
    .currency{text-transform:initial;}
    .currency:before{content:'Thank you !';text-transform:uppercase;}
	}
}

.btn-dogecoin.donate{
  .currency:before{
    content:'Make a donation';
    font-size: .65em;
    display: block;
  }
  &.opened{
    .currency:before{content:'wow such generous !';}
  }
}

.btn-dogecoin.black{
  color:#fbbc3a;
  border-color:#323520;
  background-image:none;
  background-color:#272515;
  .symbol{border-color:#fbbc3a;}
  &.opened:after{
		background-color:#272515;  
     border-color:#323520;
  }
}


//This is only for page format
p.wow{text-align:center;font-family: 'Comic Sans MS'}
h1{font-family: 'Comic Sans MS';font-weight: normal;text-align:center;color:#f43780;}
h1:nth-child(1){color:#00aee6;}
.btn-dogecoin{margin:80px auto;}
              
            
!

JS

              
                $(function(){
  var btn = '<div class="symbol">Ð </div><p><span class="currency">Dogecoin</span></p>';
  $('.btn-dogecoin').each(function(){
    $(this).append(btn);
  });
	$('.btn-dogecoin').click(function(event) {
    	var that = this;
    	$(this).addClass('opened');  
    	$(this).children('p').children('.currency').text($(this).data('address'));	
		$('html').one('click',function() {
			$(that).removeClass('opened');
			$(that).children('p').children('.currency').text('Dogecoin');	
		});
		event.stopPropagation();
	});
});
              
            
!
999px

Console