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 href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Merriweather" rel="stylesheet">

<body data-spy="scroll" data-target=".navbar" data-offset="50">
  <div class="wrapper">
    <nav class="navbar navbar-default navbar-fixed-top">
      <div class="container-fluid text-center">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li><a href="#about">ABOUT</a></li>
            <li><a href="#works">PORTFOLIO</a></li>
            <li><a href="#contact">CONTACT</a></li>
          </ul>
        </div>
      </div>
    </nav>
  </div>
  <div class="container-fluid scrollTo" id="about">
    <div class="row">
      <div class="col-xs-12 col-sm-8 col-sm-offset-2 text-center">
        <h1 id="start">JAN MIGUEL CARANGAN</h1>
        <hr>
      </div>
      <div class="col-xs-12 col-sm-8 col-sm-offset-2 margin text-center" style="padding-bottom:15px;">
        <h3>Currently studying web development to create awesome sites in the near future.</h3>
      </div>
      <div class="col-xs-12 col-sm-2 col-sm-offset-5 text-center margin">
        <h2>Skills</h2>
      </div>
      <div class="col-xs-12 col-md-8 col-md-offset-2 text-center">
        <ul class="list-inline">
          <li>
            <i class="devicon-html5-plain-wordmark"></i>
          </li>
          <li>
            <i class="devicon-css3-plain-wordmark"></i>
          </li>
          <li>
            <i class="devicon-bootstrap-plain-wordmark"></i>
          </li>
          <li>
            <i class="devicon-javascript-plain"></i>
          </li>
          <li>
            <i class="devicon-jquery-plain-wordmark"></i>
          </li>
        </ul>
      </div>
    </div>
  </div>
  <div class="container-fluid scrollTo" id="works">
    <div class="row">
      <div class="col-xs-12 col-sm-8 col-sm-offset-2 text-center">
        <h1>SELECTED PROJECTS</h1>
        <hr style="margin-bottom:40px;">
      </div>
      <div class="col-xs-12 col-sm-6 col-md-4">
        <a href="https://s.codepen.io/kingjami/debug/dpXmGE" target="_blank">
          <div class="photo-thumbnail margin"><img class="img-responsive img-thumbnail photo-thumbnail" src="http://i36.photobucket.com/albums/e20/kingjami/Codepen/projectThumbnail1_zpsklwaj6n0.png" />
            <div class="photo-title">
              <h2 class="title">Tribute Page</h2>
            </div>
          </div>
        </a>
      </div>
      <div class="col-xs-12 col-sm-6 col-md-4">
        <a href="https://codepen.io/kingjami/debug/XjroaE/" target="_blank">
          <div class="photo-thumbnail margin"><img class="img-responsive img-thumbnail photo-thumbnail" src="http://i36.photobucket.com/albums/e20/kingjami/Codepen/quote%20generator_zpsg6hze5jg.png" />
            <div class="photo-title">
              <h2 class="title">Random Quote Generator</h2>
            </div>
          </div>
        </a>
      </div>
      <div class="col-xs-12 col-sm-6 col-md-4">
        <a href="https://s.codepen.io/kingjami/debug/wzZGbp" target="_blank">
          <div class="photo-thumbnail margin"><img class="img-responsive img-thumbnail photo-thumbnail" src="http://i36.photobucket.com/albums/e20/kingjami/Codepen/weatherApp_zpsbszv1kr4.png" />
            <div class="photo-title">
              <h2 class="title">Local Weather App</h2>
            </div>
          </div>
        </a>
      </div>
      <div class="col-xs-12 col-sm-6 col-md-4">
        <a href=#>
          <div class="photo-thumbnail margin"><img class="img-responsive img-thumbnail photo-thumbnail" src="http://i36.photobucket.com/albums/e20/kingjami/Codepen/wikiViewer_zpshxpjghst.png" />
            <div class="photo-title">
              <h2 class="title">Wikipedia Viewer</h2>
            </div>
          </div>
        </a>
      </div>
      <div class="col-xs-12 col-sm-6 col-md-4">
        <a href=#>
          <div class="photo-thumbnail margin"><img class="img-responsive img-thumbnail photo-thumbnail" src="http://i36.photobucket.com/albums/e20/kingjami/Codepen/calcu_zpsoezk9qpp.png" />
            <div class="photo-title">
              <h2 class="title">Javascript Calculator</h2>
            </div>
          </div>
        </a>
      </div>
      <div class="col-xs-12 col-sm-6 col-md-4">
        <a href=#>
          <div class="photo-thumbnail margin"><img class="img-responsive img-thumbnail photo-thumbnail" src="http://i36.photobucket.com/albums/e20/kingjami/Codepen/photo-frame_zpsljshbjdq.jpg" />
            <div class="photo-title">
              <h2 class="title">Coming Soon</h2>
            </div>
          </div>
        </a>
      </div>
    </div>
  </div>
  <div class="container-fluid margin scrollTo" id="contact">
    <div class="row">
      <div class="col-xs-12 col-sm-8 col-sm-offset-2 text-center">
        <h1>GET IN TOUCH</h1>
        <hr>
      </div>
      <div class="col-xs-10 col-xs-offset-1 col-sm-6 col-sm-offset-3 margin">
        <h2 class="margin">Send a message</h2>
        <form class="margin">
          <div class="form-group">
            <input type="text" class="form-control" id="form-name" placeholder="Name">
          </div>
          <div class="form-group">
            <input type="email" class="form-control" id="form-email" placeholder="Email">
          </div>
          <div class="form-group">
            <textarea id="form-textarea" class="form-control" rows="5" placeholder="Your message">
</textarea>
          </div>
          <button type="submit" id="form-button" class="btn btn-default form-control"><i class="fa fa-check-square-o"></i></button>
        </form>
        <sup>*form not working. Only did it for illustration purposes.</sup>
      </div>
      <div class="col-xs-10 col-xs-offset-1 col-sm-7 col-sm-offset-3">
        <h2 class="margin">Stay connected</h2>
        <div class="col-xs-10 col-xs-offset-1 col-sm-7 col-sm-offset-2 text-center">
          <ul class="list-inline">
            <li><a class="btn btn-social-icon btn-facebook" href="https://facebook.com" target="_blank"><i class="fa fa-facebook"></i></a></li>
            <li><a class="btn btn-social-icon btn-github" href="https://github.com" target="_blank"><i class="fa fa-github"></i></a></li>
            <li><a class="btn btn-social-icon btn-codepen" href="https://codepen.io" target="_blank"><i class="fa fa-codepen"></i></a></li>
            <li><a class="btn btn-social-icon btn-linkedin" href="https://linkedin.com" target="_blank"><i class="fa fa-linkedin"></i></a></li>
        </div>
      </div>
    </div>
  </div>
    <div id="goToTop"><i class="fa fa-chevron-up"></i></div>
              
            
!

CSS

              
                @media (max-width: 767px) {
  .navbar-default .navbar-collapse {
    border: none;
    box-shadow: none;
  }
  
  .navbar-default .navbar-collapse .navbar-nav >li.active > a::before,
  .navbar-default .navbar-collapse .navbar-nav >li >a::before {
    content:'';
    width:0px;
    
  }

.navbar-default .navbar-collapse .navbar-nav >li.active >a:focus,
.navbar-default .navbar-collapse .navbar-nav >li >a:focus,
.navbar-default .navbar-collapse .navbar-nav >li.active >a:hover,
.navbar-default .navbar-collapse .navbar-nav >li >a:hover, 
.navbar-default .navbar-collapse .navbar-nav >li.active > a {
    color: #eac67a;
  position:static;
  }
  
.navbar-default {
  background-color: #eeeeee !important;
}
   
  .navbar-default .navbar-collapse {
    background: #eeeeee;
    position: absolute;
 width:100%;
 top: 40px;
  }
}    

body,input, textarea {
  font-family: 'Merriweather', serif;
  color: #18121e;
}

.navbar-default .navbar-nav >li > a::before {
  content: '';
  display: block;
  position: absolute;
  bottom: 5px;
  width: 50%;
  left: 10%;
  height: 4px;
  background-color: transparent;
  background: linear-gradient(to right, #eac67a 50%, transparent 50%);
  background-size: 200% 100%; 
  background-position:right bottom;
  transition:all .6s ease;
}

.navbar-default .navbar-nav >li.active > a::before {
  content: '';
  display: block;
  position: absolute;
  bottom: 5px;
  width: 75%;
  left: 10%;
  height: 4px;
  background-color: #eac67a;
  
}

.navbar-default .navbar-nav > li > a:hover:before,
.navbar-default .navbar-nav >li > a:focus:before {
  background-position:left bottom;
}

.navbar-default {
  background-color: transparent;
  border: none;
  min-height: 30px;
  height: 45px;
          -webkit-transition: background-color 1000ms linear;
        -moz-transition: background-color .250s linear;
        -o-transition: background-color .250s linear;
        -ms-transition: background-color .250s linear;
        transition: background-color .250s linear;
    }

.navbar-nav {
  display: inline-block;
  float: none;
}

.navbar-default .navbar-nav > li > a {
  color: #18121e;
  font-weight: bold;
  font-size: 18px;
  font-family: 'Ubuntu',sans-serif;
}

.navbar-default .navbar-nav >li.active > a {
  background-color: transparent;
  color: #eac67a;
}

.navbar-default .navbar-nav > li.active >a:hover,
.navbar-default .navbar-nav > li.active > a:focus {
  background: none;
  color: #eac67a;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav >li > a:focus {
  color: #eac67a;
}

hr {
	border: 2px solid #18121e;
  width: 37px;
}

#about {
	padding: 200px 0 80px 0;
  background-color: #bea0bb;
}

#works {
	padding: 80px 0 80px 0;
  background-color: #f4decb;
}

#contact {
	padding: 80px 0 80px 0;
  background-color: #f8eee7;
}

h1 {
	color: #18121e;
  font-size: 60px;
  font-family: 'Ubuntu',sans-serif;
  font-weight: bold;
}

h3 {
  font-size: 26px;
  padding: 0 10px 0 10px;
}

h2 {
  font-size: 30px;
  padding: 0 10px 0 10px;
}

.title {
   padding: 20% 0 20% 0;
}

.margin {
  margin-bottom: 10px;
}

.photo-thumbnail {
  position: relative;
  width: 100%;
  height: auto;
}

.photo-title {
  font-family: 'Ubuntu',sans-serif; 
  width: 100%;
  height: 100%;
  background-color: #cbe1f4;
  z-index: 10;
  position: absolute;
  top: 0;
  left: 0;
  color: #18121e;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s linear;
}

.photo-title:hover {
  opacity: .9;
}

.fa {
  font-size: 22px;
}

#form-name:focus,
#form-email:focus,
#form-textarea:focus {
border: 1px solid ##E7F1F8;
box-shadow: 0px 0px 5px 5px #E7F1F8;  
}

#form-button:hover {
  background-color: #E7F1F8;
}

.btn-social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

.btn-codepen {
  background-color: black;
  color: white;
}

 .btn-codepen:hover {
  background-color: #323232;
}

.fa-codepen:hover {
  color:white;
}

.btn-social-icon > .fa {
  font-size: 26px;
  padding: 15%;
}

.list-inline > li,
.list-inline > li > i {
  font-size: 60px;
  transition: all .25s ease;
}

.list-inline > li:hover {
    transform: scale(1.2);
  
}

.list-inline > li > i:hover {
  color: white;
}

.wrapper {
  position: relative;
}

.row {
  margin: 0px;
}

#goToTop {
  text-align: center;
  position: fixed;
  z-index: 1000;
  right: 40px;
  bottom: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 5px solid black;
  opacity: 0.2;
  display: none;
}

#goToTop > .fa {
  font-size: 30px;
  text-align: center;
  margin: 0px auto;
}

@keyframes wobble-vertical {
	25% {
		transform: translateY(-4px);
	}

	50% {
		transform: translateY(0);
	}

	75% {
		transform: translateY(-4px);
	}

	100% {
		transform: translateY(0px);
	}
}


#goToTop:hover {
  cursor: pointer;
  animation: border .4s ease 1 forwards;
}

#goToTop > .fa:hover {
  		animation-name: wobble-vertical;
		animation-duration: 2s;
		animation-timing-function: ease-in-out;
		animation-iteration-count: infinite;
	}
}
              
            
!

JS

              
                $(document).ready(function(){
var scrollStart = 0;
var startChange = $("#start");
var offset = startChange.offset();
  $(document).scroll(function() { 
      scrollStart = $(this).scrollTop();
      if(scrollStart > offset.top) {
          $('.navbar-default').css('background-color', '#eee');
        $('#goToTop').fadeIn();
       } else {
          $('.navbar-default').css('background-color', 'transparent');
         $('#goToTop').fadeOut();
       }
   });
 $("#goToTop").click(function() {
    $('html, body').animate({scrollTop : 0},500);
		return false;
  }) 
  $(".navbar-default .navbar-nav li a").click(function(e){
    e.preventDefault();
    $("html,body").scrollTo(this.hash, this.hash);
  })
})
              
            
!
999px

Console