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

              
                <body>
      <!-- Navigation -->
      <header class="headroom">
         <nav class="navbar navbar-toggleable-md navbar-light bg-faded">
            <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
            </button>
            <a class="navbar-brand" href="#">
            <img src="https://v4-alpha.getbootstrap.com/assets/brand/bootstrap-solid.svg" width="30" height="30" class="d-inline-block align-top" alt="">
            Bootstrap
            </a>
            <div class="collapse navbar-collapse" id="navbarSupportedContent">
               <ul class="navbar-nav mr-auto">
                  <li class="nav-item active">
                     <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
                  </li>
                  <li class="nav-item">
                     <a class="nav-link" href="#">Products</a>
                  </li>
                  <li class="nav-item">
                     <a class="nav-link disabled" href="#">Contacts</a>
                  </li>
               </ul>
               <form class="form-inline my-2 my-lg-0">
                  <input class="form-control mr-sm-2" type="text" placeholder="Search">
                  <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
               </form>
            </div>
         </nav>
      </header>
      <!-- SECTION1 -->
      <section id="part1">
         <div class="container h-100 d-flex justify-content-center align-items-center">
            <div class="row">
               <div class="col">
                  <div class="chevron-row bounceInDown animated">
                     <h1 class="text-center" id="title1">Hi, my name is Liam Docherty</h1>
                     <h4 class="text-center" id="title2">I'm a Front-End Web Developer from London</h4>
                     <h5 class="text-center" id="title3">Get in touch with me <a href=#part4 class="txtlink" target=_blank>here</a>.</h5>
                     <hr class="line">
                     <p class="first-para text-center">Learn more about me and view my projects</p>
                     <p class="first-para text-center">Click on the arrow</p>
                     <a href="#part2">
                     <i class="fa fa-angle-double-down bounce fa-4x"></i>
                     </a>
                  </div>
               </div>
            </div>
         </div>
      </section>
      <!-- SECTION2 -->
      <section id="part2">
         <div class="container">
            <div class="row">
               <div class="col-lg-12 text-center">
                  <h2 class="slideInRight animated" id="title4">about</h2>
                  <hr class="line2 slideInRight animated">
                  <div class="row">
                  </div>
               </div>
            </div>
         </div>
      </section>
      <!-- SECTION3 -->
      <section id="part3">
         <div class="container">
            <div class="row">
               <div class="col-lg-12 text-center">
                  <h2 id="title4">portfolio</h2>
                  <hr class="line2">
                  <div class="row">
                  </div>
               </div>
            </div>
         </div>
      </section>
      <!-- SECTION4 -->
      <section id="part4">
         <div class="container">
            <div class="row">
               <div class="col-lg-12 text-center">
                  <h2 id="title4">Download my CV</h2>
                  <hr class="line2">
                  <div class="row">
                     <div class="col-lg-12 text-center">
                        <a class="button2 btn btn-primary btn-lg" href="https://v4-alpha.getbootstrap.com/components/buttons/" role="button">Click to download CV</a>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </section>
      <!-- SECTION5 -->
      <section id="part5">
         <div class="container">
            <div class="row">
               <div class="col-lg-12 text-center">
                  <h2 id="title4">Contact</h2>
                  <hr class="line2">
                  <div class="row">
                  </div>
               </div>
            </div>
         </div>
      </section>
      </body>
              
            
!

CSS

              
                /* Essentials 
---------------------------------------------------------------------------- */

html,
body {
	height: 100%;
	width: 100%;
}

body {
  position: relative;
}


/* Sections
---------------- */

#part1,
#part2,
#part3,
#part5 {
	height: 100vh;
	width: 100%;
}

#part4 {
	height: 40vh;
	width: 100%;
}

#part1 {
	background: #003554;
}

#part2, #part4 {
	background: #fff;
}

#part3, #part5 {
	background-color: #E6E6E9;
}

/* Navigation Bar
---------------- */

.navbar {
	display: none;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 10;
	height: 4rem;
	background-color: #003554;
}


/* Text
---------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: sans-serif;
}

#title1,
#title2,
#title3 {
	color: #fff;
}

#title4,
#title5,
#title6 {
	color: #000;
	text-transform: uppercase;
}

#title1 {
	font-size: 2.0rem;
	font-weight: 700;
}

#title2 {
	font-size: 1.8rem;
	font-weight: 650;
}

#title3 {
	font-size: 1.8rem;
	font-weight: 650;
}

#title4 {
	font-size: 3.5rem;
	margin-top: 5rem;
	font-family: "Droid Serif", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: bold;
}

.sub-title {
	color: #000;
	text-transform: uppercase;
	font-weight: 500;
	font-size: 1.8rem;
}

p {
	font-family: sans-serif;
}

.first-para {
	color: #fff;
}

.second-para {
	color: #000;
}

.sub-title,
.second-para {
	margin-top: 0.5rem;
}

.txtlink {
	color: #fff;
	font-weight: bold;
}

.txtlink:hover {
	color: #fff;
	border-bottom: 0.2rem dashed #fff;
}


/* buttons
---------------- */

.chevron-row {
	text-align: center;
	color: #fff;
}

.chevron-row a {
	color: #fff;
	text-decoration: none;
}

.chevron-row li {
	margin-top: 1.5rem;
}

.fa {
	display: block;
	margin: 0 auto;
}

.bounce {
	animation: bounce 3s infinite;
	-webkit-animation: bounce 3s infinite;
	-moz-animation: bounce 3s infinite;
	-o-animation: bounce 3s infinite;
}


/*!
 * animate.css -http://daneden.me/animate
 * Version - 3.5.1
 * Licensed under the MIT license - http://opensource.org/licenses/MIT
 * https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.css
 * Copyright (c) 2016 Daniel Eden
 */

@-webkit-keyframes bounce {
	from,
	20%,
	53%,
	80%,
	to {
		-webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
		animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
		-webkit-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
	}
	40%,
	43% {
		-webkit-animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
		animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
		-webkit-transform: translate3d(0, -30px, 0);
		transform: translate3d(0, -30px, 0);
	}
	70% {
		-webkit-animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
		animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
		-webkit-transform: translate3d(0, -15px, 0);
		transform: translate3d(0, -10px, 0);
	}
	90% {
		-webkit-transform: translate3d(0, -4px, 0);
		transform: translate3d(0, -4px, 0);
	}
}

@keyframes bounce {
	from,
	20%,
	53%,
	80%,
	to {
		-webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
		animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
		-webkit-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
	}
	40%,
	43% {
		-webkit-animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
		animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
		-webkit-transform: translate3d(0, -30px, 0);
		transform: translate3d(0, -20px, 0);
	}
	70% {
		-webkit-animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
		animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
		-webkit-transform: translate3d(0, -15px, 0);
		transform: translate3d(0, -10px, 0);
	}
	90% {
		-webkit-transform: translate3d(0, -4px, 0);
		transform: translate3d(0, -4px, 0);
	}
}


/*Bootstrap/Fontawesome button outline override*/

.btn-outline {
	background-color: transparent;
	color: inherit;
	transition: all .5s;
}

.btn-success.btn-outline {
	color: #fff;
	border-color: #fff;
}

.btn-success.btn-outline:hover {
	color: #fff;
}

.button2  {
	background-color: #003554;
	border-color: #003554;
	margin-top: 1.5rem;
}

/* line divider
---------------- */

.line {
	border: solid 0.1rem #fff !important;
}

.line2 {
	border: solid 0.1rem #000 !important;
	margin-top: 0.5rem;
	width: 15%;
}


              
            
!

JS

              
                // transition from S1-S2 function 
$(document).ready(function(){
  $(".fa.fa-angle-double-down").on('click', function(event) {
		event.preventDefault();
    debugger;
    if (this.parentElement.hash !== "") {
      event.preventDefault();
      // Store hash
      var hash = this.parentElement.hash;
console.log(`hash = ${hash}`);
      $('html, body').animate({
        scrollTop: $(hash).offset().top
      }, 800, function(){

        window.location.hash = hash;
      });
    } // End if
    console.log(`hash2 = ${hash}`);
  });
  // Nav bar function
  var windowHeight = $(window).height();
  $(window).on("scroll", function() {
  if ($(this).scrollTop() >= windowHeight) {
    $(".navbar").show();
  } else {
    $(".navbar").slideUp(400);
  }
});
});


              
            
!
999px

Console