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

              
                <html>
  <body>
    <div id="loading-page">
      <div id="spinner"></div>
      <div id="spinner-label">Loading...</div>
    </div>
    <div id="horizontal-menu">
      <ul> 
       <li><a href="#header">Home</a></li>
        <li><a href="#collections">Collections</A></li>
        <li><a href="#infos">Other Informations</a></li>
      </ul>
    </div>
          
    <header id="header">
      <div id="innovation-background-header">Clothes</div>
            <div id="innovation-foreground-header">Quality</div>
      <div id="title"><b>We sell clothes</b></div>
      <div id="subtitle"><b>Unreal brand.</b></div>
    </header>
    <div id="content">
      <h1 align=center>We like clothes</h1>
      <div class="line"></div>
      <p align=center> 
      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam facilisis id justo sit amet rutrum. Aenean accumsan bite tristique ipsum, in egestas diam egestas id. Sed ac augue porta, tempus metus sed, tempus est. Morbi posuere molestie lectus, a condimentum neque blandit vel. Ut elementum convallis ex et ornare. Duis pharetra eros eu libero efficitur elementum. Donec fringilla laoreet sagittis. Nunc nec consectetur dolor. Sed ultricies sapien sit amet lectus eleifend, quis aliquet velit tincidunt. In vestibulum purus ac condimentum molestie. In porta fringilla efficitur.</p>
            <div id="collections">
      <h1>Our Collections</h1>
      <div class="line"></div><br>
      <div class="collection" id="dahyun-collection"><h1>First collection</h1>
        <div class="button-cta">From <b>99$</b></div></div>
         <div class="collection" id="mina-collection"><h1>Other collection</h1>
        <div class="button-cta">From <b>59$</b></div></div>
      </div>
            <div id="newsletter">
      <h1 align=center id="infos">Newsletter</h1>
      <div class="line"></div><br><br><br>
      <input type="email" class="basic-input" placeholder="Enter your e-mail" />
      <input type="submit" class="button-cta bg-white" value="Subscribe to our Newsletter" />
      </div>
      <h1 align=center>Find us</h1>
      <div class="line"></div>
      <div id="social-links">
        <ul id="social-links-list">
          <li id="twitter"><span class="button-cta bg-white">Twitter</span></li>
          <li id="instagram"><span class="button-cta bg-white">Instagram</span></li>
          <li id="pinterest"><span class="button-cta bg-white">Pinterest</span></li>
    </div>
  </body>
</html>
              
            
!

CSS

              
                * {
  font-family: 'Arial';
}

a {
  color:inherit;
  text-decoration:inherit;
}
#horizontal-menu ul li {
  display:inline;
  color: #fff;
  padding:15px;
  text-align:center;
  cursor:pointer;
}
#horizontal-menu ul li:hover {
  background:#fff;
  color:#000;
}
#horizontal-menu ul {
  margin:0 auto;
}
#horizontal-menu {
  opacity:0;
  display:flex;
  padding:15px;
  transition:all 0.3s ease;
  justify-content:center;
  background:#000;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:13;
}
html {
  overflow:hidden;
}
#innovation-background-header {
  position: absolute;
  left:500px;
  filter: blur(1px);
  z-index:1;
  top:50px;
  text-shadow: 1px 1px 0px #fff;
  transform: rotate(-9deg);
}
#innovation-foreground-header {
  position: absolute;
  left:100px;
  font-size: 50px;
  filter: blur(3px);
  z-index:5;
  top:400px;
  
  text-shadow: 1px 1px 0px #fff;
  transform: rotate(9deg);
}
#loading-page {
  z-index:14;
  color:#00FFA6;
  position:fixed;
  top:0;left:0;
  width:100%;
  height:100%;
  background:#303030;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
@keyframes spin {
  from {transform:rotate(0deg)}
  to {transform:rotate(360deg)}
}
#loading-page #spinner {
  width:100px;
  height:100px;
  margin-bottom:30px;
  border:5px solid #00FFA6;
  border-top-color:transparent;
  border-radius:50%;
  animation: spin 1s linear infinite;
}
.line {
  width: 50%;
  height: 1px;
  background: #AAA;
  margin: 0 auto;
}
.button-cta {
  padding:10px;
  border:2px solid #fff;
  color: #fff;
  text-shadow:none;
  cursor:pointer;
}
.button-cta:hover {
  background:#fff;
  color:#000;
}
.button-cta:active {
  transform:translateY(2px);
}
h1 {
  color: #000;
  text-shadow:1.5px 1.5px 0px #AAA;
}
header {
  background: url("https://wallpaperaccess.com/full/2489626.jpg") fixed;
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  z-index:-1;
}
header #subtitle {
    color:#000;
  margin-top:10px;
  font-size:40px;
    text-transform:uppercase;
  font-family: 'Arial';
  padding-top:10px;
  z-index:2;
  text-shadow:2px 2px 0px #fff;
  padding-bottom:1px;
}
header #subtitle:before {
  content:'';
  transition: all 1.5s ease;
    position: absolute;
  height:5px;
  width:100%;
  transform: rotateY(90deg);
  background:#000;
  bottom:0;
    box-shadow:2px 2px 0px #fff;
  right:0;
}
header #subtitle:hover:before {
  transform: rotateY(0deg);
}

header #title {
  color:#000;
  z-index:2;
    text-shadow:2px 2px 0px #FFF;
  text-transform:uppercase;
  font-family: 'Arial';
  font-size:90px;
  border: 5px solid #000;
    border-right:0;
  border-left:0;
  padding:10px;
}
header #title:before {
  content:'';
  position:absolute;
  width:0;
  height:0;
  border:30px solid transparent;
  border-bottom-color:#000;
  top:-60px;
}
header #title:after {
  content:'';
  position:absolute;
  width:0;
  height:0;
  border:30px solid transparent;
  border-top-color:#000;
  bottom:-63px;
  right:10px;
}
#content {
  color: #000;
  z-index:3; 
  top:100%;
  position: absolute;
  text-align:center;
  background:#fff;
  height:400%;
}
.collection {
  display:flex;
  opacity:0;
  box-shadow:0px 0px 95px #000 inset;
  transition:all 0.5s ease;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  font-family:'Arial';
  color:#000 ;
  text-shadow:1.5px 1.5px 0px #FFF;
  width:250px;
  height:250px;
  border-radius:50%;
  margin:0 auto;
}
#dahyun-collection {    
  background: url("http://i.imgur.com/OwLHpcx.jpg") no-repeat;
  background-attachment: fixed;
  background-size: contain;
  background-position: center;
  margin-bottom:100px;
}
#mina-collection {
  background: url("https://yellowslugreviews.files.wordpress.com/2016/01/mina-twice.jpg?w=640") no-repeat;
  background-attachment: fixed;
    background-size:contain;
  background-position:center;
}
.basic-input {
  padding:15px;
  background:#eee;
  border:0;
  outline:0;
}
.bg-white {
  border: 2px solid #000;
  color: #000;
  width:auto;
  margin:0;
}
.bg-white:hover { 
  background: #000;
  color:#fff;
}
#newsletter {
  opacity:0;
  transition: all 1s ease;
  transform:translateY(10px);
}
#social-links {
  display:flex;
  justify-content:center;
}
#social-links #social-links-list li {
  display: inline-flex;
  flex-direction:column;
    align-items:center;
  justify-content: center;
  background:#000;
  margin:10px 0;
  padding:10px;
  width:120px;
  height:120px;
  border-radius:50%;
  opacity:0;
  transition:all 1s ease;
}
input[type="email"] {outline: none;}
#social-links #social-links-list li#twitter {
  background: #55acee;
  transform:translateX(-15px);
}
#social-links #social-links-list li#instagram {
  background:  #fb3958;
    transform:translateX(15px);

}
#social-links #social-links-list li#pinterest {
  background: #bd081c;
    transform:translateY(15px);

}
              
            
!

JS

              
                $(function() {
  $(window).scroll(function() {
    var yScroll = $(this).scrollTop();
            if (yScroll >= $("#social-links").offset().top-300) {
      $("#social-links ul li").css({
        'transform':'translate(0,0)',
        'opacity':'1'
      });
      }
    if (yScroll >= $("#content").offset().top) {
      $("#horizontal-menu").css("opacity","1");
    } else {      $("#horizontal-menu").css("opacity","0");
}
    $("header #title").css({
      'transform':'translate(0px,' + yScroll/1.6+'px)'
    });
       $("header #subtitle").css({
      'transform':'translate(0px,' + yScroll/1.65+'px)'
            
    });
    $("#innovation-background-header").css({
      'transform': 'translateY(' + yScroll/1.1 +'px) rotate(-15deg)'
    });
    $("#innovation-foreground-header").css({
      'transform': 'translateY(' + yScroll/10 +'px) rotate(15deg)'
    });
    if (yScroll >= $(".collection").offset().top-300) {
       $(".collection").css({
              "opacity":"1"
            });
    }
    if (yScroll >= $("#newsletter").offset().top-500) {
      $("#newsletter").css({
        'opacity':'1',
        'transform':'translateY(0)'
      });
    }
  });
  
  $(window).ready(function() {
    $("#loading-page").fadeOut(500);
    $(document).scrollTop(1);
        $(document).scrollTop(0);
    $("html").css("overflow-y","scroll");
  });
$('*[href*=\'#\']').click(function(event){

    $('html, body').animate({
        scrollTop: $( $.attr(this, 'href') ).offset().top
    }, "slow");
  return false;
});
});

              
            
!
999px

Console