Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

              
                <div class="container">

  <div class="headers header-top">
    <ul class="top-slide-nav">
      <li class="top-list"><h1 class="clients">Clients</h1></li>
      <li class="top-list"><h1 class="first-name-top">Nolan</h1></li>
    </ul>
  </div>

  <div class="headers header-left">
    <h1 class="last-name-left">Marketti</h1>
  </div>
  <nav>
    <div class="menu-button">
      <button class="hamburger hamburger--spring" type="button">
        <span class="hamburger-box">
          <span class="hamburger-inner"></span>
        </span>
      </button>
    </div>
    <div class="menu-dropdown">
      <ul>
        <li class="nav-item" id="profile">Profile<span class="underline"></li>
        <li class="nav-item" id="clients">Clients<span class="underline"></li>
        <li class="nav-item"><a href="#">Thoughts<span class="underline"></a></li>
        <li class="nav-item"><a href="#">Contact<span class="underline"></a></li>
      </ul>
    </div>
  </nav>
  <div class="center-content">
    </p>
  </div>

  <div class="headers header-right">
    <h1 class="last-name-right">Morales</h1>
  </div>

  <div class="headers header-bottom">
  <!-- Click Me! -->
    <h1 class="site-name-bottom more-white-space"><span class="reveal">More</span> White Space</h1>
  </div>
  <div class="social">
    <ul>
      <li></li>
      <li></li>
      <li></li>
    </ul>
  </div>

</div>
<hr class="mini-divide">
              
            
!

CSS

              
                body {
  background-color: #FFFFFF;
}

p, a {
    font-family: $secondary-font;
}

.container {
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color:#FFFFFF;
  align-items: center;
  justify-content: center;
}

h1 {
  font-family: $primary-font;
  position:relative;
  font-size:.8em;
  color: $secondary-color;
  text-transform: uppercase;
  letter-spacing: 1.2em;
  padding-left:15px;
  margin-top:0px;
  margin-bottom:0px;
}

.center-content {
  align-items: center;
  width:40%;
  p {
    position:relative;
    color:$primary-color;
    line-height:1.8em;
    text-align: center;
  }
  a {
    text-decoration: none;
    color:$primary-color;
    transition:all 0.5s ease;

      &:hover {
        color:red;
        border-bottom:1px solid red;
        transition:all 0.5s ease;
      }

  }

}


.headers {
  overflow:hidden;
  position: absolute;
  align-self: center;
}

.top-slide-nav {
  padding:0px;
  margin-top:-25px;
  position:relative;
  text-align:center;

    li {
      list-style-type:none;
      padding:5px 0px;
    }
}
.header-top {
  top: 5%;
}

.header-left {
  left:0;
  -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}

.header-right {
  right: 0;
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}

.header-bottom {
  bottom: 5%;
    h1 {
        color:$primary-color;
        transition:all 0.5s ease;

        &:hover {
          transition:all 0.5s ease;
          color:#ff0000;
          
        }
    }
}

.social {
  display:none;
}

@charset "UTF-8";
/*!
 * Hamburgers
 * @description Tasty CSS-animated hamburgers
 * @author Jonathan Suh @jonsuh
 * @site https://jonsuh.com/hamburgers
 * @link https://github.com/jonsuh/hamburgers
 */

// Settings
// ==================================================
$hamburger-padding-x                       : 15px !default;
$hamburger-padding-y                       : 25px !default;
$hamburger-layer-width                     : 30px !default;
$hamburger-layer-height                    : 2px !default;
$hamburger-layer-spacing                   : 6px !default;
$hamburger-layer-color                     : #000 !default;
$hamburger-layer-border-radius             : 4px !default;
$hamburger-hover-opacity                   : 0.7 !default;
$hamburger-hover-transition-duration       : 0.15s !default;
$hamburger-hover-transition-timing-function: linear !default;

// To use CSS filters as the hover effect instead of opacity,
// set $hamburger-hover-use-filter as true and
// change the value of $hamburger-hover-filter accordingly.
$hamburger-hover-use-filter: false !default;
$hamburger-hover-filter    : opacity(50%) !default;

// Types (Remove or comment out what you don’t need)
// ==================================================
$hamburger-types: (
  spring,
) !default;

// Base Hamburger (We need this)
// ==================================================
@import "base";

// Hamburger types
// ==================================================

@import "spring";


// ==================================================
// Cooking up additional types:
//
// The Sass for each hamburger type should be nested
// inside an @if directive to check whether or not
// it exists in $hamburger-types so only the CSS for
// included types are generated.
//
// e.g. hamburgers/types/_new-type.scss
//
// @if index($hamburger-types, new-type) {
//   .hamburger--new-type {
//     ...
//   }
// }


// Menu

nav {
  position:absolute;
  top:20%;
  width:40%;
  display:flex;
  flex-direction: column;
  justify-content: center;
  
        .menu-button {
        display:flex;
        justify-content:center;
      }

      .menu-dropdown {
         display:flex;
         justify-content:center;
      }

    ul {
      padding-left:0;
      padding-right:0;

        .nav-item {
          top:-15px;
          opacity:0;
          position:relative;
          padding-left:15px;
          padding-right:15px;
          display:inline-block; 
        }

          a {
            position:relative;
            overflow-x: hidden;
            text-decoration:none;
            color:$primary-color;
            transition:all 0.5s ease;

              &:hover {
              color:#ff0000;
              transition:all 0.5s ease;
            }
               .underline {
                  position: absolute;
                  bottom: -5px;
                  left:0;
                  width: 100%;
                  border-bottom: 1px solid black;
              }
          }
    }
}
              
            
!

JS

              
                // wait until DOM is loaded
$(document).ready(function(){
    console.log("DOM is ready");

// Clients On Click

var clients = TweenMax.to(".top-slide-nav", 1.5, {top:35, paused:true, ease:Power2.easeOut});

var $clients = $("#clients") 
    $clients.on('click', function() {
    clients.play();
});


// Profile On CLick
var profile = TweenMax.to(".top-slide-nav", 1.5, {top:0, paused:true, ease:Power2.easeOut});



var $profile = $("#profile")
    $profile.on('click', function() {
    profile.play();
});
  
});
              
            
!
999px

Console