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

              
                <body>  
  <div class='post-body'>
    <h2 class='post-title'>This is a Demo of this Widget <b>(</b>Scroll down to see the Magic<b>)</b></h2>        
    <p><b>Askwithloud is one of the best for blogging tips and tricks. Learn about seo, HTML and Javascript in very simple way.</b></p>    
    <p><b>1-:</b> Learn-How to Add New Code Highlighter In Blogger-<a href="http://www.askwithloud.com/2015/07/How-to-add-new-code-highlighter-in-blogger.html" target="_blank">Add New Code Highlighter In Blogger</a></p>     
    <p><b>2-:</b> Learn-How to Fix Do Not Track Your Own Page Views In Blogger-<a href="http://www.askwithloud.com/2015/07/How-to-fix-do-not-track-your-own-page-views.html" target="_blank">Fix Do Not Track Your Own Page Views In Blogger</a></p>  
    <p><b>3-:</b> Learn-How to Add Responsive Recent Post Slider Widget in Blogger-<a href="http://www.askwithloud.com/2015/07/add-responsive-recent-post-slider.html" target="_blank">Add Responsive Recent Post Slider Widget in Blogger</a></p> 
    <p><b>4-:</b> Learn-How to Fix A Popular Post Widget Error-<a href="http://www.askwithloud.com/2015/07/how-to-fix-popular-post-widget-error.html" target="_blank">How to Fix A Popular Post Widget Error</a></p>     
    <p><b>5-:</b> Learn-How to Setup Custom Robots Header Tags in Blogger-<a href="http://www.askwithloud.com/2015/07/how-to-setup-custom-robots-header-tags.html" target="_blank">Setup Custom Robots Header Tags in Blogger</a></p>    
</div> 
    
  <div class='post-body'>        
    <p><b>6-:</b> Learn-How to Divide A Blog Article into 2 Columns-<a href="http://www.askwithloud.com/2015/07/how-to-divide-blog-article-into-2.html" target="_blank">Divide A Blog Article into 2 Columns</a></p>    
    <p><b>7-:</b> Learn-How To Remove Quick Edit Icon on Blogger-<a href="http://www.askwithloud.com/2015/07/how-to-remove-quick-edit-tool-on-blogger.html" target="_blank">How To Remove Quick Edit Icon on Blogger</a></p>     
    <p><b>8-:</b> Learn-How To add DISQUS Comment Box Widget In Blogger-<a href="http://www.askwithloud.com/2015/07/disqus-comment-box-widget-for-blogger.html" target="_blank">DISQUS Comment Box Widget For Blogger</a></p>  
    <p><b>9-:</b> Learn-How To Setup A Bigrock Domain Name in Blogger-<a href="http://www.askwithloud.com/2015/07/how-to-setup-bigrock-domain-name-in.html" target="_blank">Setup A Bigrock Domain Name in Blogger</a></p> 
    <p><b>10-:</b> Learn-How to Hide Post/Pages Title in Blogger-<a href="http://www.askwithloud.com/2015/07/how-to-hide-post-pages-title-in-blogger.html" target="_blank">How to Hide Post/Pages Title in Blogger</a></p>     
    <p><b>11-:</b> Learn-How to Add Mouse Hover Social Media Widget In Blogger-<a href="http://www.askwithloud.com/2015/07/mouse-hover-social-media-widget-for-blogger.html" target="_blank">Add Mouse Hover Social Media Widget In Blogger</a></p>       
</div> 

  <div class='post-body'>       
    <p>That's it ! I hope you like this widget! Stay tuned for more blogger widgets, tips and tricks! Thanks for reading @<b>Prince</b></p>     
</div>    
<div id='scroll'></div>    
</body>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700);

body {
    background-color:#f9f9f9;
    font-size:16px;
    color:#444;
  font-family: 'PT Sans Narrow', sans-serif;
}
.post-body h2{
    color:#33D3A2;
}
.post-body {
    max-width:680px;
    margin:20px auto;
    border:10px solid #f0f0f0;
    padding:15px 20px;
    background-color:#fff;
    color:#444;
}
#scroll {
  display:none;
  position:fixed;
  top:0;
  right:15px;
  z-index:500;
  padding:3px 8px;
  background-color:#33D3A2;
  color:#fff;
  border-radius:3px;
  font-size:14px;  
}
#scroll:after {
  content: " ";
  position: absolute;
  top:50%;
  right:-10px;
  height:0;
  width:0;
  margin-top:-6px;
  border:6px solid transparent;
  border-left-color:#369fcf;
}
              
            
!

JS

              
                var scrollTimer = null;
$(window).scroll(function() {
  var viewportHeight = $(this).height(),
    scrollbarHeight = viewportHeight / $(document).height() * viewportHeight,
    progress = $(this).scrollTop() / ($(document).height() - viewportHeight),
    distance = progress * (viewportHeight - scrollbarHeight) + scrollbarHeight / 2 - $('#scroll').height() / 2;
  $('#scroll')
    .css('top', distance)
    .text(' (' + Math.round(progress * 100) + '%)')
    .fadeIn(600);
  if (scrollTimer !== null) {
    clearTimeout(scrollTimer);
  }
  scrollTimer = setTimeout(function() {
    $('#scroll').fadeOut(600);
  }, 1000);
});
              
            
!
999px

Console