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 class="wrap">
  
  <nav>
    <container>
      <div class="logo-wrap">
        <div class="logo-text">Outlier</div>
      </div>
      <div class="nav_menu">
        <ul>
          <li><a href="#">Print</a></li>
          <li><a href="#">Latest</a></li>
          <li><a href="#">Gallery</a></li>
          <li><a href="#">Levels</a></li>
        </ul>
        <button class="nav--button" href="#">Connect</button>
      </div>
    </container>
  </nav>
  
  <div class="hero">
    <a href="" class="nav left">
      <svg fill="none" class="rubicons chevron-left" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5">
        <path d="M15 6l-6 6 6 6" stroke-linecap="round"></path>
      </svg>
    </a>
    <a href="" class="nav right">
      <svg fill="none" class="rubicons chevron-right" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5">
        <path d="M9 18l6-6-6-6" stroke-linecap="round"></path>
      </svg>
    </a>
    
    <div class="hero_content_wrap">
      <button class="hero--button" href="#">View Set</button>
    </div>
  </div>
  <div id="nav_big_text"></div>
  
  <footer>
    
    <div class="social_links">
      <a id="help" href="#">
        <svg fill="none" class="rubicons brands-facebook" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
          <path d="M16 14l1-4h-4V7a1.0002 1.0002 0 011-1h3V2h-3a4.9997 4.9997 0 00-5 5v3.007L6 10v4h3v8h4v-8h3z" stroke-linejoin="round"></path>
        </svg>
      </a>
      <a id="instagram" href="#">
        <svg fill="none" class="rubicons brands-instagram" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
          <path d="M16 3H8C5.2386 3 3 5.2386 3 8v8c0 2.7614 2.2386 5 5 5h8c2.7614 0 5-2.2386 5-5V8c0-2.7614-2.2386-5-5-5z" stroke-miterlimit="10"></path>
          <path d="M15.375 12c0-1.864-1.511-3.375-3.375-3.375S8.625 10.136 8.625 12s1.511 3.375 3.375 3.375 3.375-1.511 3.375-3.375zM17.375 7.312c0-.3794-.3086-.687-.688-.687a.687.687 0 00-.687.687v.001c0 .3794.3086.687.688.687a.687.687 0 00.687-.687v-.001z" stroke-miterlimit="10"></path>
        </svg>
      </a>
      <a id="twitter" href="#">
        <svg fill="none" class="rubicons brands-twitter" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
          <path d="M22 4a11.4143 11.4143 0 01-3.072 1.357 3.9488 3.9488 0 00-6.2459.373A3.9483 3.9483 0 0012 8v.881C8 10 5 8 3 5c0 0-3 8 5.475 11.348A11.1144 11.1144 0 012 18c7.932 4.407 17.932.111 17.932-10.025A8.527 8.527 0 0022 4z" stroke-linecap="round" stroke-linejoin="round"></path>
        </svg>
      </a>
    </div>
    
    <div class="copyright">
      ©<span class="year">year</span> OUTLIER - All rights reserved.
    </div>
    
  </footer>
</div>
              
            
!

CSS

              
                body {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
}

.wrap {
  padding: 1.5rem;
}

nav {
  padding: 16px 36px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 6px 16px hsl(200, 15, 95%);
  container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    ul, .nav_menu {
      display: flex;
      justify-content: space-between;
      align-items: center;
      list-style: none;
      gap: 36px;
    }
    li {
      a {
        padding: 8px;
        letter-spacing: .2rem;
        font-size: .9rem;
        text-decoration: none;
        text-transform: uppercase;
        color: hsl(0, 0, 60%,);
        transition: color 150ms ease-out;
        &:hover {
          color: hsl(0, 0, 1%,);
        }
      }
    }
  }
}

.logo-text {
  font-size: 1.4rem;
  line-height: .8;
  letter-spacing: .6rem;
  font-weight: 700;
  position: relative;
  text-transform: uppercase;
  &:after {
    content: "";
    width: 6px;
    height: 6px;
    position: absolute;
    background: black;
    top: calc(100%/2.7);
    margin-left: 12px;
    border-radius: 2px;
  }
}

.nav--button {
  text-decoration: none;
  text-transform: uppercase;
  padding: 12px 24px;
  color: white;
  border: solid black 2px;
  background: black;
  transition-property: color, background;
  transition-duration: .15s;
  transition-timing-function: ease-out;
  border-radius: 3px;
  cursor: pointer;
  &:hover {
    color: black;
    background: transparent;
  }
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 48px;
  border-radius: 5px;
  min-height: 50vh;
  position: relative;
  background-image: url("https://images.unsplash.com/photo-1534138807944-7b5dd2954e1a?crop=entropy&cs=srgb&fm=jpg&ixid=MnwxNDU4OXwwfDF8cmFuZG9tfHx8fHx8fHx8MTYyNzExNzU3Nw&ixlib=rb-1.2.1&q=85");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  a {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    padding-top: 24px;
    color: white;
    height: 100%;
    width: 5%;
    &.left {
      left: 0;
    }
    &.right {
      right: 0;
    }
  }
}

.hero--button {
  text-decoration: none;
  text-transform: uppercase;
  padding: 12px 24px;
  color: black;
  border: solid white 2px;
  background: white;
  transition-property: color, background;
  transition-duration: .15s;
  transition-timing-function: ease-out;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 24px;
  &:hover {
    color: hsl(0, 0, 60%,);
  }
}

#nav_big_text {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  color: hsl(200, 15, 88%);
  opacity: 0;
  font-size: 18rem;
  font-weight: 700;
  line-height: .8;
  text-transform: uppercase;
  transform: translateX(10%);
  transition-property: transform, opacity;
  transition-duration: .25s;
  transition-timing-function: ease-out;
  z-index: -1;
}

#nav_big_text.big_text_active {
  transform: translateX(0%);
  opacity: 1;
}

footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: absolute;
  bottom: 24px;
  
}

.copyright {
  font-size: .7rem;
  letter-spacing: .2rem;
  color: hsl(0, 0, 60%,);
  text-transform: uppercase;
}

.social_links {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 2px;
  margin-right: 24px;
  a {
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    width: 32px;
    height: 32px;
    border-radius: 5px;
    background: transparent;
    transition-property: background, opacity;
    transition-duration: .25s;
    transition-timing-function: ease-out;
    &:hover {
      background: #fff;
      color: hsl(0, 0, 60%,);
    }
    #help {
      
    }
    #instagram {
      
    }
    #twitter {
      
    }
  }
}


              
            
!

JS

              
                const navLinks = document.querySelectorAll("nav a")
const navTextCopy = document.getElementById("nav_big_text")

for (var i=0; i<navLinks.length; i++){
  navLinks[i].addEventListener("mouseover",function(){
    let navLinkText = this.textContent
    navTextCopy.textContent = navLinkText
    navTextCopy.classList.add("big_text_active")
  })
  
  navLinks[i].addEventListener("mouseout",function(){
    let navLinkText = this.textContent
    navTextCopy.textContent = navLinkText; 
    navTextCopy.classList.remove("big_text_active")
  })
}

function copyrightYear() {
  const yearEl = document.querySelector('.year')
  const date = new Date()
  yearEl.textContent = date.getFullYear()
}

copyrightYear()
              
            
!
999px

Console