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

              
                <link rel="stylesheet" type="text/css"
    href="https://fonts.googleapis.com/css?family=Lobster">

<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"/>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>



<div  class="jumbotron">
<div class="container-fluid text-center"> <br><br><br><br><br><br><br><br><br><h1>Calvin and Hobbes</h1>
  <h2 class="text-center"><small>Bill Watterson</small></h2> 
  <a class="smoothScroll " href="#image"><i class="fa fa-angle-down fa-2x" aria-hidden="true"></i> </a>



</div>

  <div class="jumbotron"><br>
  <a class="smoothScroll " href="#down"><center><img id="image" src="http://wallpapers-and-backgrounds.net/wp-content/uploads/2016/01/calvin-and-hobbes-full-hd-background_1_1920x1200.jpg" width="700" height="500"> </center>
    </a> </div>
 
<br><br><br><br><br>
  

</div>
<div class="jumbotron">
  <br><br><br><br>
  <h1 id="down" class="text-center" > Timeline </h1>
  <br>
  <p><ul class="fa-ul text-center "> 
    <li><h3><span class="label label-default">Nov 18, 1985</h3></span>
      First Calvin and Hobbes comic strip </li>
    
    <li><h3><span class="label label-default">May 5, 1991-February 1, 1992 </h3></span>
    Extended break</li>
      
    <li><h3><span class="label label-default">April 3, 1994-December 31, 1994 </span></h3>
      Extended break</li>

    <li><h3><span class="label label-default">Dec 31, 1995 </h3></span>
      Calvin and Hobbes final strip</li>
 
    
    <li><h3><span class="label label-default">Nov 18, 2005 </h3></span>
      Calvin and Hobbes 20th Anniversary</li>
  <br>
   <a class="smoothScroll " href="#wiki"><i class="fa fa-angle-down fa-2x" aria-hidden="true"></i> </a>
    </ul> </p>

  </div> </div>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>



<div id="wiki"class="jumbotron">
  <center><a href="https://en.wikipedia.org/wiki/Calvin_and_Hobbes"><i class="fa fa-2x fa-wikipedia-w" aria-hidden="true"></i></a><h4>Know more about Calvin and Hobbes</h4></center>
  <br>
  <br><br><br><br><br><br><br> </div>

  



              
            
!

CSS

              
                
.jumbotron {
  background-color:transparent!important; }


.btn-primary-outline {
  background-color:transparent ;
  border-color: #FFFF00;
}

              
            
!

JS

              
                $(function() {
  // This will select everything with the class smoothScroll
  // This should prevent problems with carousel, scrollspy, etc...
  $('.smoothScroll').click(function() {
    if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
      var target = $(this.hash);
      target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
      if (target.length) {
        $('html,body').animate({
          scrollTop: target.offset().top
        }, 1000); // The number here represents the speed of the scroll in milliseconds
        return false;
      }
    }
  });
});

// Change the speed to whatever you want
// Personally i think 1000 is too much
// Try 800 or below, it seems not too much but it will make a difference
              
            
!
999px

Console