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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <nav class="flex flex-wrap h-32">

  <!-- logo -->
  <div class="w-1/2 flex justify-start">
    <a class="self-center">Something</a>
  </div>

  <div class="w-1/2 flex justify-end">

    <!-- Hamburger classes to activate hamburger -->
    <button class="hamburger hamburger--collapse" type="button">
        <span class="hamburger-box">
          <span class="hamburger-inner"></span>
        </span>
      </button>

  </div>

</nav>
<!-- OVERLAY -->
<div class="overlay absolute w-screen h-screen bg-white z-10 flex flex-wrap">

  <!-- NAV MENU -->
  <div class="flex w-1/2 justify-center">
    <ul class="text-56 list-reset leading-normal">
      <li><a class="no-underline text-blue-dark hover:text-blue-light" href="<?php site_url(); ?>">Home</a></li>
      <li><a class="no-underline text-blue-dark hover:text-blue-light" href="<?php echo get_page_link(13); ?>">Work</a></li>
      <li><a class="no-underline text-blue-dark hover:text-blue-light" href="<?php echo get_page_link(17); ?>">Expertise</a></li>
      <li><a class="no-underline text-blue-dark hover:text-blue-light" href="<?php echo get_page_link(20); ?>">About</a></li>
      <li><a class="no-underline text-blue-dark hover:text-blue-light" href="<?php echo get_page_link(23); ?>">Contact</a></li>
    </ul>
  </div>

  <div class="flex flex-wrap w-1/2">

    <div class="w-full">
      <h2>Bezoek ons</h2>
      <p class="my-10 leading-loose">
        Some adress <br> Lol you almost <br> Saw this <br>
        <a class="no-underline text-blue-dark hover:text-blue-light" href="tel:+12345678">+31(0)04574452</a>
      </p>
      <a class="no-underline text-blue-dark hover:text-blue-light mt-2" href="mailto:info@info.com">info@info.com</a>
    </div>

    <div class="w-full">
      <h2>We are social!</h2>
      <p class="my-10 leading-loose">
        <a class="text-blue-dark no-underline hover:text-blue-light" href="">Facebook</a> /
        <a class="text-blue-dark no-underline hover:text-blue-light" href="">Instagram</a> /
        <a class="text-blue-dark no-underline hover:text-blue-light" href="">LinkedIn</a>
      </p>
    </div>

  </div>

</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                var tween = TweenMax.fromTo(
  ".overlay",
  1,
  { xPercent: "100", ease: Power1.easeInOut },
  { xPercent: "0", ease: Power1.easeInOut, paused: true }
);

var $hamburger = $(".hamburger");

$hamburger.on("click", function(e) {
  $hamburger.toggleClass("is-active");
  if ($hamburger.hasClass("is-active")) {
    tween.play();
  } else {
    tween.reverse();
  }
});

              
            
!
999px

Console