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

              
                <div id='nav'>
  <div class="wrapper">
    <div id="toggle">
      <span></span>
      <span></span>
      <span></span>
    </div>
    <div id="ico">
      <div title="home"><a href="https://codepen.io/rachelCoder"><svg style="width:24px;height:24px" viewBox="0 0 24 24">
    <path fill="#fff" d="M2,12L12,3L22,12H19V20H5V12H2M12,18L12.72,17.34C15.3,15 17,13.46 17,11.57C17,10.03 15.79,8.82 14.25,8.82C13.38,8.82 12.55,9.23 12,9.87C11.45,9.23 10.62,8.82 9.75,8.82C8.21,8.82 7,10.03 7,11.57C7,13.46 8.7,15 11.28,17.34L12,18Z" />
      </svg></a></div>
      <div title="about"><a href="https://rachelhdesigner.com/"><svg style="width:24px;height:24px" viewBox="0 0 24 24">
    <path fill="#fff" d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z" />
      </svg></a></div>
      <div title="contact"><a href="https://rachelhdesigner.com/contact/"><svg style="width:24px;height:24px" viewBox="0 0 24 24">
    <path fill="#fff" d="M20,8L12,13L4,8V6L12,11L20,6M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z" />
      </svg></a></div>
      <div title="projects"><a href="https://rachelhdesigner.com/projects-2/"><svg style="width:24px;height:24px" viewBox="0 0 24 24">
    <path fill="#fff" d="M8,3A2,2 0 0,0 6,5V9A2,2 0 0,1 4,11H3V13H4A2,2 0 0,1 6,15V19A2,2 0 0,0 8,21H10V19H8V14A2,2 0 0,0 6,12A2,2 0 0,0 8,10V5H10V3M16,3A2,2 0 0,1 18,5V9A2,2 0 0,0 20,11H21V13H20A2,2 0 0,0 18,15V19A2,2 0 0,1 16,21H14V19H16V14A2,2 0 0,1 18,12A2,2 0 0,1 16,10V5H14V3H16Z" />
      </svg></a></div>
    </div>
  </div>
  <nav>
    <ul>
      <li><a href="https://codepen.io/rachelCoder">Home</a></li>
      <li><a href="https://rachelhdesigner.com/">About</a></li>
      <li><a href="https://rachelhdesigner.com/contact/">Contact</a></li>
      <li><a href="https://rachelhdesigner.com/projects-2/">Projects</a></li>
    </ul>
  </nav>
</div>
<main>
  <h2><span>Rachel H.</span><span>Creative Web Developer</span></h2>
  <p>Web and graphic designer with over 12 years of experience working in the defense and research industries. Creating web solutions for internal and external customers. Projects ranging from content development, wireframes, mockups, and web design. Using
    HTML, CSS, JavaScript, jQuery, SharePoint, WordPress, Dreamweaver, Sharepoint Designer, and InfoPath.</p>
</main>
              
            
!

CSS

              
                body {
  font-family: "Alata", sans-serif;
  min-height: 100vh;
  min-width: 100vw;
  background: rgb(63, 94, 251);
  background: -moz-linear-gradient(
    90deg,
    rgba(63, 94, 251, 1) 0%,
    rgba(252, 70, 107, 1) 100%
  );
  background: -webkit-linear-gradient(
    90deg,
    rgba(63, 94, 251, 1) 0%,
    rgba(252, 70, 107, 1) 100%
  );
  background: linear-gradient(
    90deg,
    rgba(63, 94, 251, 1) 0%,
    rgba(252, 70, 107, 1) 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient(
      startColorstr="#3f5efb",
      endColorstr="#fc466b",
      GradientType=1
    );
}
main {
  margin: 20px 0px 10px 90px;
}
h2 {
  color: white;
  text-shadow: 1px 1px #000;
}
p {
  line-height: 40px;

  letter-space: 1.25px;
  color: white;
  margin-top: 30px;
  margin-right: 20px;
}
h2 span:nth-child(1) {
  font-size: 40px;
  text-transform: uppercase;
}
h2 span:nth-child(2) {
  display: block;
  font-size: small;
  letter-spacing: 2.2px;
  padding-top: 5px;
  text-transform: lowercase;
}
#nav {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  min-height: 200vh;
  min-width: 70px;
  background-color: #000;
  transition: min-width 350ms ease-in-out, background-color 650ms ease-in-out;
}
.wrapper {
  position: relative;
}
#nav nav {
  text-align: center;
  margin: 0;
  padding: 0px;
  min-height: 0;
  overflow: hidden;
  height: 0;
  opacity: 0;
  transform: scale(0);
  transition: all 250ms ease-in-out;
}
.ico {
}
#nav.active nav {
  min-height: 600px;
  height: auto;
  margin-top: 300px;
  transform: scale(2);
  opacity: 1;
}
#nav nav ul li {
  text-align: center;
  padding: 10px;
}
nav ul li a:hover,
nav ul li a:link,
nav ul li a:active,
nav ul li a:visited {
  text-decoration: none;
  color: white;
  font-size: 10px;
  text-transform: uppercase;
}
#nav.active {
  min-width: 100vw;
  background-color: #3f5efb;
}
#toggle {
  width: 60px;
  height: 45px;
  position: relative;
  margin: 20px auto;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
  cursor: pointer;
}
#toggle {
  transform: scale(0.5);
}
#toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 0px;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  -o-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}

#toggle span:nth-child(1) {
  top: 0px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#toggle span:nth-child(2) {
  top: 18px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#toggle span:nth-child(3) {
  top: 36px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#toggle.open span:nth-child(1) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  top: -3px;
  left: 8px;
}

#toggle.open span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

#toggle.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  top: 39px;
  left: 8px;
}
#ico.active {
  max-height: 0;
  overflow: hidden;
  height: 0;
  opacity: 0;
}
#ico {
  max-height: 200px;
  height: auto;
  opacity: 1;
  transition: all 250ms ease;
}
#ico > div {
  cursor: pointer;
  text-align: center;
  padding: 10px 0px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 250ms ease;
  margin: 5px;
}
#ico > div:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
#ico > div > a {
  display: block;
  height: 100%;
  width: 100%;
}

              
            
!

JS

              
                (function() {
  "use strict";
  const ico = document.getElementById("ico");
  const tg = document.getElementById("toggle");
  const nv = document.getElementById("nav");
  tg.addEventListener("click", function() {
    this.classList.toggle("open");
    nv.classList.toggle("active");
    ico.classList.toggle("active");
  });
})();

              
            
!
999px

Console