cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

            
              <header id="header">
  <div class="hidden-form">
    <div class="form">
      <div class="sign">
        <h3>SIGN UP</h3>
        <form>
          <input type="text" placeholder=" First name" />
          <input type="text" placeholder=" Last name" />
          <input type="email" placeholder=" Enter an email" />
          <input type="email" placeholder=" Re-enter email" />
          <input type="password" placeholder="Password" />
          <input type="submit" value="submit"/>
        </form>
        <p>Lorem ipsum dolor sit amet, ea doming<br /> epicuri iudicabit nam, te usu virtute placerat Purto<br /> brute disputando cu est.</p>
      </div>
    </div>
  </div>
  <div class="Img">
    <img id="image" src="http://www.up-9.com/uploads/148366123221741.png" />
  </div>
</header>
<section class="section">
  <div class="container">
    <div class="rect">
      <div class="circle">1</div>
      <article>This's test for make an animation with pure Javascript code</article>
      <p>Mostafa Omar</p>
    </div>
    <div class="rect">
      <div class="circle">2</div>
      <article>This's test for make an animation with pure Javascript code</article>
      <p>Mostafa Omar</p>
    </div>
    <div class="rect">
      <div class="circle">3</div>
      <article>This's test for make an animation with pure Javascript code</article>
      <p>Mostafa Omar</p>
    </div>
    <div class="rect">
      <div class="circle">4</div>
      <article>This's test for make an animation with pure Javascript code</article>
      <p>Mostafa Omar</p>
    </div>
    <div class="rect">
      <div class="circle">5</div>
      <article>This's test for make an animation with pure Javascript code</article>
      <p>Mostafa Omar</p>
    </div>
    <div class="rect">
      <div class="circle">6</div>
      <article>This's test for make an animation with pure Javascript code</article>
      <p>Mostafa Omar</p>
    </div>
    <div class="rect">
      <div class="circle">7</div>
      <article>This's test for make an animation with pure Javascript code</article>
      <p>Mostafa Omar</p>
    </div>
    <div class="rect">
      <div class="circle">8</div>
      <article>This's test for make an animation with pure Javascript code</article>
      <p>Mostafa Omar</p>
    </div>
  </div>
</section>
            
          
!
            
              * {
  padding: 0;
  margin: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;
  font-family: arial, tahoma;
}
header {
  background-color: #13181b;
  height: 900px;
  overflow: hidden;
  position: relative;
}
header .Img {
  margin: auto;
  height: 80px;
  text-align: center;
  position: relative;
  top: 5%;
  z-index: 99999;
}
header .Img img {
  height: 100%;
  display: block;
  margin: auto;
  cursor: pointer;
}
.section {
  background-color: darkslategrey;
  height: auto;
  padding: 50px 0 150px;
  border-top: 10px solid #222;
}
.container {
  display: flex;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 0px;
}
.rect {
  margin: 20px;
  border-radius: 10px;
  width: 250px;
  height: 250px;
  background-color: #13181b;
  transition: all 2s ease-in-out;
  position: relative;
  top: 150px;
  opacity: 0;
}
.rect div {
  height: 50px;
  width: 100px;
  background-color: #777;
  margin: 25px auto 0;
  border-radius: 25px;
  text-align: center;
  line-height: 50px;
}
.rect p {
  color: #555;
  text-align: center;
  padding: 10px;
  font-size: 18px;
}
.rect article {
  font-size: 16px;
  text-align: center;
  color: #999;
  padding-top: 25px;
}
.show {
  opacity: 1;
  top: 0;
}


/*

End animate

-----------------

Start form

*/


.hidden-form {
  background-color: transparent;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  z-index: 999;
  transition: all .7s ease-in-out;
  width: 0;
  right: 0;
  overflow: hidden;
}
.form {
  color: #DDD;
  width: 100%;
  height: 100%;
  position: relative
}
.form h3 {
  font-size: 30px;
  text-align: center;
  margin: 170px auto 50px;
  width: 600px;
  /*                background: #DDd;*/
}
.form p {
  padding: 20px;
  line-height: 22px;
  width: 600px;
  margin: auto;
  text-align: center;
  font-style: italic;
  color: #AAA;
}
.sign {
  /*                background: #DDD;*/
  width: 600px;
  margin: auto;
  text-align: center;
  transform: rotate(-60deg);
  transition: all .7s ease-in-out;
}
.sign input {
  color: #DDD;
  background-color: rgba(96, 125, 139, 0.2);
  margin: 0 10px;
  height: 37px;
  width: 250px;
  outline: none;
  border: 1px solid #444;
  border-radius: 5px;
  padding-left: 5px;
  transition: all .7s ease-in-out;
}
.sign input[type="email"], .sign input[type="password"] {
  width: 525px;
  display: block;
  margin: 17px auto;
}
.sign input[type="submit"] {
  width: 525px;
  background-color: #3f51b5;
  font-size: 17px;
}
.sign input:focus:not([type="submit"]) {
  box-shadow: 0 0 7.5px darkseagreen;
  border: 1px solid darkseagreen;
}
.show-form {
  width: 100%;
}
.rotate {
  transform: rotate(0deg);
}
            
          
!
            
              
var header = document.getElementById("header"),

    rects = document.getElementsByClassName("rect"),

    calcHeader = header.offsetTop;
// While you are scrolling CHECK :D
window.onscroll = function () {

  'use strict';
  // check if document Body >= header offset top (height of header)
  if (document.body.scrollTop >= calcHeader) {

    var i;
    // Make a loop for run all classes with the same value
    for (i = 0; i < rects.length; i = i + 1) {
      // Add class show 
      rects[i].classList.add("show");

    }
  }

};

// End animate
// Start form

var image = document.getElementById("image"),

    hiddenForm = document.getElementsByClassName("hidden-form"),

    sign = document.getElementsByClassName("sign"),

    focus = document.querySelector("form");

image.onclick = function () {

  'use strict';

  hiddenForm[0].classList.toggle("show-form");

  sign[0].classList.toggle("rotate");

  focus.children[0].focus();

}; 
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console