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

              
                <body data-spy="scroll" data-target="#topbar-scroll">
<header id="header">
<nav class="navbar navbar-default navbar-fixed-top" id="topbar-scroll">
  <div class="container">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#"><img src="http://www.donatomargapoti.com/image/logo_MD.png"></a>
    </div>
    <div class="collapse navbar-collapse" id="bs-navbar-collapse-1">
  
      <ul class="nav navbar-nav navbar-right">
        <li class="active"><a href="#about">About</a></li>
        <li><a href="#portfolio">Portfolio</a></li>
        <li><a href="#contact">Contact</a></li>
      </ul>
  
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>  
</header>
<section id="about">
<div class="jumbotron">
  <div class="container">
    <div class="row">
      <div class="col-md-6 jumbo-text">
        <h1>Donato Margapoti</h1>
        <h2>Web Designer, Front-End Developer</h2>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur et sapien mi. Nullam quis facilisis nulla, aliquet varius risus. Cras congue nisi et tempor blandit. Morbi aliquet erat eget quam consequat, at blandit risus luctus. In hac habitasse platea dictumst. Morbi dignissim arcu nec nisl efficitur mattis. 
        </p>
      </div>  
      <div class="col-md-6">  
        <img class="img-circle img-responsive jumbo-img" src="https://media.licdn.com/media/AAEAAQAAAAAAAAx_AAAAJGNhY2IzMjEwLTc4N2UtNGM4My1hNmZlLTBmYWUxMzY4YWE3NQ.jpg"/>
      </div>
    </div>
  </div>
</div>  
</section>
<section id="portfolio">
  <div class="container-fluid">
    <div class="row">
      <div class="col-md-6 color-1">
        <h3>Work Title</h3>
        <p>Work description</p>
        <img src="http://placehold.it/500x400" class="img-responsive img-thumbnail" alt=""/>
      </div>
      <div class="col-md-6 color-2">
        <h3>Work Title</h3>
        <p>Work description</p>
        <img src="http://placehold.it/500x400" class="img-responsive img-thumbnail" alt=""/>
      </div>      
      <div class="col-md-12 color-3  full-item">
        <h3>Work Title</h3>
        <p>Work description</p>
        <img src="http://placehold.it/700x600" class="img-responsive img-thumbnail" alt=""/>
      </div>      
      <div class="col-md-6 color-4">
        <h3>Work Title</h3>
        <p>Work description</p>
        <img src="http://placehold.it/500x400" class="img-responsive img-thumbnail" alt=""/>
      </div>      
      <div class="col-md-6 color-5">
        <h3>Work Title</h3>
        <p>Work description</p>
        <img src="http://placehold.it/500x400" class="img-responsive img-thumbnail" alt=""/>
      </div>      
      <div class="col-md-12 color-6 full-item">
        <h3>Work Title</h3>
        <p>Work description</p>
        <img src="http://placehold.it/700x600" class="img-responsive img-thumbnail" alt=""/>
      </div>
    </div>
  </div>     
</section>
<section id="contact">
  <div class="container">
    <h2>Contact Me</h2>
    <div class="row">
      <div class="col-md-6 form-container">
        <form>
          <div class="form-group">
            <label for="name">Name</label>
            <input type="text" class="form-control" id="name" placeholder="John Doe" required >
          </div>
          <div class="form-group">
            <label for="email">Email address</label>
            <input type="email" class="form-control" id="email" placeholder="example@example.com" required >
          </div>
          <div class="form-group">
            <label for="phone">Phone</label>
            <input type="tel" id="phone" class="form-control" placeholder="333 333333333" required >
          </div>
          <div class="form-group">
            <label for="message">Message</label>
            <textarea class="form-control"id="message" rows="8" placeholder="Your message here." required ></textarea>
          </div>
          
          <button type="submit" class="btn btn-default">Submit</button>
        </form>
      </div>  
      <div class="col-md-6 text-container">
        <p>
          Want to get in touch with me? Be it to request more info about myself or my experience. Just feel free to drop me a line anytime.<br>
I promise to reply A.S.A.P.
        </p>
    </div>  
    </div>  
  </div>
</section>
<footer>
  <div class="container">
    <div class="row">
      <div class="col-md-12">
        <p class="social text-center">
          <a href="https://www.facebook.com/Donato-Margapoti-492628954216010/"><i class="fa fa-facebook"></i></a>
          <a href="https://www.twitter.com/dmargapoti"><i class="fa fa-twitter"></i></a>
          <a href="https://www.instagram.com/dmargapoti"><i class="fa fa-instagram"></i></a>
          <a href="https://plus.google.com/u/0/+DonatoMargapoti"><i class="fa fa-google-plus"></i></a>
          <a href="https://github.com/Donatomar"><i class="fa fa-github"></i></a>
        </p>
      </div>
      <div class="col-md-12 text-center">
        &copy; MD 2016 - all right reserved - Made with <i class="fa fa-heart"></i> By Donato Margapoti
      </div>
    </div>
  </div>
</footer>
  
</body>
              
            
!

CSS

              
                body{
  position:relative;
font-family: 'Libre Franklin', sans-serif;
  background-color:#fff;
  color:#222;
}
.navbar-brand {
  height:100px;
  transition: height 1s;
}
.navbar-default {
  background-color: #fff;
  border-color: #222;
  color:#222;
  font-family: 'Cabin', sans-serif;
}
.navbar-default .navbar-nav>li>a{
  color:#222;
  font-size:18px;
  font-weight:700;
  transition: font-size, paddinb-top,padding-bottom 1s;
}
.navbar-default .navbar-nav>li>a:hover{
  color: #222;
  background-color: transparent;
  border-bottom:2px solid orange;
}
.navbar-brand img{
  height:100%;
  
}
ul.nav{
  margin-top:50px;
  transform: translatey(-50%);
  transition: margin-top 1s;
}
.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:focus, .navbar-default .navbar-nav>.active>a:hover {
  color: #222;
  background-color: transparent;
  border-bottom:2px solid orange;
}
.resized .navbar-brand {
  height:60px;
}
.resized ul.nav{
  margin-top:25px;
}
.resized .navbar-default .navbar-nav>li>a{
  font-size:14px;
  padding-top:7px;
  padding-bottom:7px;
}
.jumbotron{
  margin-top: 100px;
  background-color: #fff;
  padding-top: 200px;
  padding-bottom: 300px;
}
.jumbo-text{
  padding-top:30px;
}
.jumbo-img{
  margin-left:auto;
  margin-right:auto;
  box-shadow: 7px 5px 15px 0px #444;
}
#portfolio h3, #portfolio p{
  color:#fff;
  text-align:center;
  text-shadow:2px 2px 1px #444;
}
#portfolio h3{
  margin-top:50px;
}
#portfolio p{
  opacity:.8;
}
#portfolio img{
  margin:50px auto 80px;
  display:block;
}
#portfolio img.img-thumbnail{
  padding:10px;
  box-shadow:7px 5px 25px #444;
}
#portfolio .full-item img{
  margin:50px auto 100px;
}
.color-1{
  background-color:#d65555;
}
.color-2{
  background-color:#4846b5;
}
.color-3{
  background-color:#5bc3bf;
}
.color-4{
  background-color:#6d6d6d;
}
.color-5{
  background-color:#de9b96;
}
.color-6{
  background-color:#2dc16f;
}
#contact{
  background-color:#444;
  color:#fff;
  padding-top: 50px;
  padding-bottom: 30px;
}
#contact h2{
  text-align:center;
}
#contact .form-container,#contact .text-container{
  margin:40px auto;
}
#contact .text-container{
  padding:30px;
  font-size: 18px;
}
footer{
  background-color:#222;
  color:#fff;
  padding-top:20px;
  padding-bottom:20px;
  font-size:12px;
}
.social{
  font-size:16px;
  margin-bottom:25px;
}
.made{
  float:right;
}
.social a{
  color:#fff;
  font-size:18px;
  display:inline-block;
  margin:5px;
  background-color:transparent;
  padding:2px;
  width:1.5em;
  height:1.5em;
  border-radius:50%;
  text-align:center;
}
.social a:hover{
  background-color:#fff;
  width:1.5em;
  height:1.5em;
  border-radius:50%;
  color:#222;
}

              
            
!

JS

              
                $(window).scroll(function (event) {
        var y = $(this).scrollTop(); //set position from top when to change style in pixels
        if (y >= 100) {
            $('#header').addClass('resized');
        } else {
            $('#header').removeClass('resized');
        }
    });
$(function() {
  $('a[href*="#"]:not([href="#"])').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);
        return false;
      }
    }
  });
});
              
            
!
999px

Console