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.

  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

<div class="text-center" id="header">
  <h2>Classes for awesome people</h2>

<div id="body">
  <nav class="navbar navbar-default navbar-static-top">
    <div class="container-fluid">
      <!-- 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-example-navbar-collapse-1">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        <a class="navbar-brand" href="#">Abiclass</a>
      <ul class="nav navbar-nav navbar-right" id="bs-example-navbar-collapse-1">
        <li><a href="#">Home</a></li>
        <li><a href="#bottom">Bottom</a></li>
        <li><a href="#">Link</a></li>

  <div id="main">
    <div class="container">
      <div class="row">
        <div class="col-md-6">
          <h2>Heading Left</h2>
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Unde quasi, praesentium est quis molestias aliquid sint repellat necessitatibus temporibus! Quod molestias harum placeat sed labore voluptatem ab, fugiat doloribus perferendis!</p>
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore maxime quod magni voluptatum dolorum, facilis suscipit obcaecati animi hic natus assumenda nisi. Quasi debitis, quae hic iusto, necessitatibus dicta dolore.</p>
            <li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li>
            <li>Aliquam tincidunt mauris eu risus.</li>
            <li>Vestibulum auctor dapibus neque.</li>
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Unde est, sapiente. Dignissimos corporis facilis cum voluptate distinctio dolore velit modi, quasi eius minima aspernatur ratione accusantium cumque! Exercitationem, libero, quam. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolores doloremque a incidunt fugit facilis atque facere enim neque eum sed iste vitae quas temporibus, harum quod hic molestiae, nihil sit.</p>
        <div class="col-md-6">
          <h2>Heading Right</h2>
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Pariatur alias non quam eligendi quasi dignissimos omnis id minima sequi aliquam, dolore placeat, quae repudiandae quas necessitatibus repellendus! Impedit, praesentium voluptatibus.</p>
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Harum, molestias, dolorem praesentium itaque sit impedit tempore, unde perferendis quia vitae odit. Ducimus fugit architecto laudantium ex et minima. Culpa, exercitationem.</p>
          <img src="https://unsplash.it/600/400?image=0" class="img-responsive" />
      </div><!-- /.row-->
      <div class="row" id="bottom">
        <h2>Heading Bottom</h2>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Veritatis quidem totam ad molestiae et, odit voluptates debitis, distinctio autem odio voluptas quasi sed impedit pariatur ex laborum corrupti, fugit vitae! Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laboriosam nisi sit quae, delectus aspernatur quibusdam quasi fugit nesciunt. Repellendus dignissimos fugiat voluptatibus temporibus fugit aut magnam ratione, laudantium, unde amet?</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Beatae ipsa aut suscipit laborum voluptatum enim iure laudantium officiis, officia non nesciunt fugit dolorum consectetur minus perferendis aperiam! Amet, tempora, optio. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quae reiciendis eos ex! Atque maiores deleniti, voluptatem repudiandae incidunt eaque repellendus vitae sequi. Vitae quam maiores similique, eum tempora hic distinctio.</p>
        <div class="text-center">
          <img src="https://unsplash.it/800/400?image=694" alt="" class="img-responsive"/>
  </div> <!--/#main-->
</div><!-- /#body-->
              #body {
  margin: 0;
  padding-top: 330px;
  background: url('https://unsplash.it/600/200?image=668') center;
  background-size: cover;
  text-shadow: 2px 2px 2px rgba(0,0,0,0.5);
  position: fixed;
  width: 100%;
  top: 0;
#main {
  position: relative; 
.navbar.navbar-default {
  z-index: 150;
  margin-bottom: -50px;
  box-shadow: 0 2px 3px rgba(0,0,0,.4);
#main {
  background-color: #fff;
  padding:100px 0 50px 0;
              var  mn = $(".navbar.navbar-default");
var  mns = "navbar-fixed-top";
var  hdr = $('#header').height(); 

$(window).scroll(function() {
  if( $(this).scrollTop() > (hdr+80) ) {
  } else {
🕑 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 ..................