css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <nav class="navbar sticky-top navbar-expand-lg navbar-light" style="background-color: #9a16e9">
  <div class="container">
  <a class="navbar-brand" href="#">Alan THOMAS</THOMAS></a>
  <button class="navbar-toggler" 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>

  <div class="collapse navbar-collapse" id="navbarSupportedContent">
    <ul class="navbar-nav ml-auto">
      <li class="nav-item active">
        <a href="#mainf" class="hmbtn active" id="infos">Infos</a>
      </li>
      <li class="nav-item">
        <a href="#portfolio" class="hmbtn" id="portfoliolink">Portfolio
</a>
      </li>
      <li class="nav-item">
        <a href="#contactbl" class="hmbtn" id="contact">Contact
</a>
      </li>
    </ul>
  </div>
  </div>
</nav>
<!--Infos block-->
<div class="container">
  <div class="row">
    <div class="col-md-12" id="mainf">
       <div class="row">
        <div class="col-md-10">
          <h1>Aspiring Developper</h1>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vestibulum arcu erat, non tincidunt odio elementum et. Donec et posuere massa. Nam fringilla pretium tincidunt. Nullam nunc enim, accumsan vel faucibus at, vehicula sit amet nunc. Aliquam erat volutpat. Etiam at metus nec orci rhoncus posuere. Etiam cursus metus quis ligula vehicula tincidunt. Maecenas ut lectus vitae sapien sodales laoreet. Mauris volutpat vehicula eleifend. Nulla molestie odio vitae maximus rutrum. Praesent porttitor, nisl ac tempor pharetra, ante justo placerat felis, et viverra leo nunc in lectus. Proin interdum justo a elit malesuada aliquet. Quisque et dignissim ligula.</p>
        </div>
          <div class="col-md-2">
            <img src="https://upload.wikimedia.org/wikipedia/commons/9/97/Grigori_Rasputin_1916.jpg" alt="rasputin" class="img-thumbnail" id="rasputin">
          </div>
    </div>
      </div>
    </div>
  <!--Portfolio-->
    <div class="row">
    <div class="col-md-12" id="portfolio">
       <div class="row">
        <div class="col-md-12">
          <h1>Portfolio</h1>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vestibulum arcu erat, non tincidunt odio elementum et. Donec et posuere massa. </p>
        </div>
     <!--Beginning of the actual portfolio -->
         <div class="col-md-3 col-sm-2">
           <a href="#"><img src="https://images.unsplash.com/photo-1505886410478-e9e273c2ac09?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=c049e590b321bf8d12c9d8de84264970&auto=format&fit=crop&w=800&q=80" class="img-fluid img-thumbnail tn"></a><figcaption class="figure-caption text-center">A caption for the above image.</figcaption>
         </div>
         <div class="col-md-3 col-sm-2">
           <figure class="figure">
           <a href="#"><img src="https://images.unsplash.com/photo-1425006844706-508d4cf28dc9?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=bf7ab10fd5e84c9ce53e49beba520706&auto=format&fit=crop&w=1267&q=80" class="img-fluid img-thumbnail tn"></a><figcaption class="figure-caption text-center">A caption for the above image.</figcaption>
         
         </figure>
         </div>
         <div class="col-md-3 col-sm-2">
           <a href="#"><img src="https://images.unsplash.com/photo-1465443313160-ebeac85f54d6?ixlib=rb-0.3.5&s=9817cd3981f04454cab54d935eeb1e46&auto=format&fit=crop&w=1351&q=80" class="img-fluid img-thumbnail tn"></a><figcaption class="figure-caption text-center">A caption for the above image.</figcaption>
         </div>
         <div class="col-md-3 col-sm-2">
           <a href="#"><img src="https://images.unsplash.com/photo-1429152937938-07b5f2828cdd?ixlib=rb-0.3.5&s=27caf9cdfe74f8f98d55515f97de5008&auto=format&fit=crop&w=1267&q=80" class="img-fluid img-thumbnail tn"></a><figcaption class="figure-caption text-center">A caption for the above image.</figcaption>
         </div>
           
           <div class="col-md-3 col-sm-2">
           <a href="#"><img src="https://images.unsplash.com/photo-1505886410478-e9e273c2ac09?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=c049e590b321bf8d12c9d8de84264970&auto=format&fit=crop&w=800&q=80" class="img-fluid img-thumbnail tn"></a><figcaption class="figure-caption text-center">A caption for the above image.</figcaption>
         </div>
         <div class="col-md-3 col-sm-2">
           <figure class="figure">
           <a href="#"><img src="https://images.unsplash.com/photo-1425006844706-508d4cf28dc9?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=bf7ab10fd5e84c9ce53e49beba520706&auto=format&fit=crop&w=1267&q=80" class="img-fluid img-thumbnail tn"></a><figcaption class="figure-caption text-center">A caption for the above image.</figcaption>
         
         </figure>
         </div>
         <div class="col-md-3 col-sm-2">
           <a href="#"><img src="https://images.unsplash.com/photo-1465443313160-ebeac85f54d6?ixlib=rb-0.3.5&s=9817cd3981f04454cab54d935eeb1e46&auto=format&fit=crop&w=1351&q=80" class="img-fluid img-thumbnail tn"></a><figcaption class="figure-caption text-center">A caption for the above image.</figcaption>
         </div>
         <div class="col-md-3 col-sm-2">
           <a href="#"><img src="https://images.unsplash.com/photo-1429152937938-07b5f2828cdd?ixlib=rb-0.3.5&s=27caf9cdfe74f8f98d55515f97de5008&auto=format&fit=crop&w=1267&q=80" class="img-fluid img-thumbnail tn"></a><figcaption class="figure-caption text-center">A caption for the above image.</figcaption>
        
         </div>
      </div>
         
    </div>
      </div>
  <div class="row">
    <div class="col-md-12" id="contactbl">
          <h1>Contact</h1>
      <form class="form-horizontal" action="#">
  <div class="form-group">
    <label class="control-label col-sm-2" for="name">Name:</label>
    <div class="col-sm-12">
      <input type="name" class="form-control" id="name" placeholder="Enter name">
    </div>
    <label class="control-label col-sm-2" for="email">Email:</label>
    <div class="col-sm-12">
      <input type="email" class="form-control" id="email" placeholder="Enter email">
    </div>
    <div class="form-group"> 
    <div class="col-sm-offset-2 col-sm-12">
      <button type="submit" class="btn btn-default"><i class="fa fa-paper-plane-o" aria-hidden="true"></i> Submit</button>
    </div>
  </div>
          
        </div>
    </div>

  </div>
  
  </div>
  <div class="container-fluid" id="footer">
    <div class="container">
      <div class="row">
        <div class="col-md-3" id="infosbl">
          <h1>ABOUT THIS PAGE</h1>
          <p>Assignment for <a href="http://www.freecodecamp.com">FreeCodeCamp </a>Created by Alan Thomas</p>
          
        </div>
        <div class="col-md-6" id="footer-middle">
          <h1 class="text-center">Inspired by <a href="http://www.qlip.in">Justin Sane</a></h1>
        </div>
        <div class="col-md-3" id="social">
          <h1>AROUND THE WEB</h1>
          <div class="row" id="icons">
            <div class="col-md-3">
          <a href="#"><i class="fa fa-facebook-square" id="facebook" aria-hidden="true"></i></a>
            </div>
            <div class="col-md-3">
          <a href="#"><i class="fa fa-instagram" aria-hidden="true" id="instagram"></i></a>
            </div>
            <div class="col-md-3">
          <a href="#"><i class="fa fa-linkedin-square" aria-hidden="true" id="linkedin"></i></a>
            </div>
            <div class="col-md-3">
          <a href="#"><i class="fa fa-twitter-square" aria-hidden="true" id="twitter"></i></a>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
            
          
!
            
              body {
  font-family: Raleway;
  background-color: grey;
 
}

#mainf {
  background-color:#999999;
  font-size: 18px;
  border-bottom: 10px solid grey ;
 
}

#contactbl {
  background-color:#eda376;
  font-size: 18px;

 
}

#portfolio {
  background-color:#ffffff;
  font-size: 18px;
  border-bottom: 10px solid grey ;
  padding-bottom: 20px;
 
}

.navbar {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  height: 80px;
}

#rasputin {
  height:200px;
  max-width:200px;
  margin-right: 100px;
  margin-top: 110px;
  margin-bottom: 20px;
  border-radius: 50%;
}

h1 {
  margin-top: 80px;
  margin-left: 20px;
  font-family: Amatic SC;
}

p {
  margin-left:20px;
  margin-bottom: 20px;
}

.hmbtn {
  background-color: #6b0493;
  border: none;
  height: 80px;
  padding : 20px 10px 0px 10px;
  font-family: Amatic SC;
  font-size: 24px;
  color: #fff;
  display: inline-block;
  transition: all .5s;
  
 
}

.navbar-brand {
  font-family: Amatic SC;
  font-size: 38px;
  color: #fff !important;
}




.hmbtn:hover {
    background-color: #9a16e9;
  transition: all .5s;

}

.active:hover {
   background-color: purple;
  box-shadow: inset -5px 0px 26px 1px rgba(0,0,0,0.75);
}

.tn:hover {
  opacity: 0.6;
}

.active {
  background-color: purple;
  box-shadow: inset -5px 0px 26px 1px rgba(0,0,0,0.75);
  transition: all .5s;
}

a:hover, a:visited, a:link, a:active
{
text-decoration: none;
  color:#fff;
}

input[type=email] {
  background-color: #eda376;
  border-radius : 0px;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom : 4px solid white;
  margin : 0px 0px 20px 0px;
  
}

input[type=name] {
  background-color: #eda376;
  border-radius : 0px;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom : 4px solid white;
  margin : 0px 0px 20px 0px;
  

  
}

input[type=name]:focus {
  background-color: #eda376;
  border-radius : 0px;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom : 4px solid #e47532;
  margin : 0px 0px 20px 0px;

}

input[type=email]:focus {
  background-color: #eda376;
  border-radius : 0px;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom : 4px solid #e47532;
  margin : 0px 0px 20px 0px;
  outline: none;
}

::placeholder {
  color: #fff !important;
}

input:focus::-webkit-input-placeholder {
    color: #e47532 !important;
}

form {
  color: #fff;
  padding-left: 5px;
}

form button {
  width: 100%;
  margin-top: 20px;
  border-radius: 0px !important;
  background-color: #e47532;
}

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

#footer {
  background-color : #9a16e9;
  margin-bottom: 0px;
}


#footer h1 {
  margin-top: 20px;
}
#infosbl {
  background-color : grey;
}
#social {
  background-color : grey;
}

#footer i {
  font-size : 50px;
}

#facebook:hover {
  color: #3b5998;
}

#instagram:hover {
  color: #8a3ab9
}

#linkedin:hover {
  color: #0077B5
}

#twitter:hover {
  color: #00aced
}

#icons {
  padding-left : 20px;
  padding-right: 25px;
}

#footer-middle {
  background-color: #666666;
}
            
          
!
            
              $(document).ready(function () {
    $(document).on("scroll", onScroll);
    
    //smoothscroll
    $('a[href^="#"]').on('click', function (e) {
        e.preventDefault();
        $(document).off("scroll");
        
        $('a').each(function () {
            $(this).removeClass('active');
        })
        $(this).addClass('active');
      
        var target = this.hash,
            menu = target;
        $target = $(target);
        $('html, body').stop().animate({
            'scrollTop': $target.offset().top+2
        }, 500, 'swing', function () {
            window.location.hash = target;
            $(document).on("scroll", onScroll);
        });
    });
});

function onScroll(event){
    var scrollPos = $(document).scrollTop();
    $('.navbar-nav a').each(function () {
        var currLink = $(this);
        var refElement = $(currLink.attr("href"));
        if (refElement.position().top <= scrollPos && refElement.position().top + refElement.height() > scrollPos) {
            $('.navbar-nav a ul li a').removeClass("active");
            currLink.addClass("active");
        }
        else{
            currLink.removeClass("active");
        }
      if (scrollPos + $(window).height() +1 > $(document).height()) {
       $("#portfoliolink").removeClass("active");
       $("#contact").addClass("active");
    }
      
    });
  
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console