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

              
                <body>
  <div class="container">
    <div class="arrow arrowLeft"><i class="fa fa-chevron-left" aria-hidden="true"></i></div>
    <div class="arrow arrowRight"><i class="fa fa-chevron-right" aria-hidden="true"></i>
    </div>
    <div class="iconBox"></div>
    <div class="slideDot">
      <div class="dot dot0 active"></div>
      <div class="dot dot1"></div>
      <div class="dot dot2"></div>
      <div class="dot dot3"></div>
    </div>
    <div class="textBox"></div>
  </div>
</body>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Lato');
*{
  font-family:'Lato', arial, sans-serif;
}

html, body{
  width:100%;
  height:100%;
  margin:0px;
}

body{
background: rgb(255,255,255);
background: -webkit-linear-gradient(-45deg, rgba(255,255,255,1) 0%,rgba(255,255,255,1) 50%,rgba(232, 154, 116,1) 50%);
background: linear-gradient(135deg, rgba(255,255,255,1) 0%,rgba(255,255,255,1) 50%,rgba(232, 154, 116,1) 50%);
}

.container{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  -webkit-transform:translate(-50%, -50%);
  width:340px;
  height:500px;
  border-radius:2px;
  
  background: #f46b45;
  background: -webkit-linear-gradient(to bottom, #eea849, #f46b45);
  background: linear-gradient(to bottom, #eea849, #f46b45);
}

.arrow{
  position:absolute;
  font-size:2.2em;
  top:100px;
  color:#FFF;
  opacity:0.4;
  cursor:pointer;
  transition:0.1s;
}

.arrow:hover{
  opacity:0.8;
  font-size:2.4em;
  top:98px;
}

.arrowLeft{
  left:15px;
}

.arrowRight{
  right:15px;
}

.iconBox{
  position:absolute;
  width:180px;
  height:180px;
  border-radius:100px;
  background:#FFF;
  opacity:0.6;
  left:80px;
  top:30px;
}

.slideDot{
  position:absolute;
  width:180px;
  height:20px;
  text-align:center;
  left:80px;
  top:470px;
}

.dot{
  margin:5px;
  width:15px;
  height:15px;
  border-radius:100px;
  display:inline-block;
  background:#cc5a3b;
  cursor:pointer;
}

.textBox{
  position:absolute;
  width:300px;
  height:230px;
  top:230px;
  left:20px;
  /*background:lightgreen;*/
  color:#f7f7f7;
  text-align:center;
}

h2{
  margin-top:0px;
  margin-bottom:5px;
}

input{
  width:200px;
  margin-left:5px;
  height:25px;
  margin-top:15px;
  font-size:1.1em;
  background:;
  border-radius:10px;
  outline:none;
  padding:1px 5px;
  border:0px;
}

.emin{
  margin-left:35px;
}

.pasin{
  margin-left:5px;
}

.conin{
  margin-left:16px;
}

.submitBTN{
  position:absolute;
  left:90px;
  top:180px;
  width:120px;
  height:30px;
  padding-top:7.5px;
  border-radius:4px;
  font-size:1.2em;
  cursor:pointer;
  transition:0.1s;
}

.submitBTN:hover{
  font-size:1.4em;
  color:#5F3C1C;
}

.fa-globe{
  position:absolute;
  left:30px;
  top:17px;
  font-size:9em;
}

.fa-hdd-o{
  position:absolute;
  left:28px;
  top:12px;
  font-size:9em;
}

.fa-shield{
  position:absolute;
  left:39px;
  top:24px;
  font-size:9em;
}

.fa-user-plus{
  position:absolute;
  left:35px;
  top:28px;
  font-size:7em;
}

.active{
  background:#F8D8B6;
}
              
            
!

JS

              
                $(document).ready(function() {
  var count = 0;
  var contents = [
    [
      "<i class='fa fa-globe' aria-hidden='true'></i>",
      "<h2>GLOBAL INTERESTS</h2><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam ut ex sodales enim dictum finibus. Aliquam erat volutpat. Nunc suscipit facilisis justo et vestibulum. Etiam bibendum vitae orci quis laoreet. Pellentesque interdum nunc at facilisis ultrices. Sed semper euismod quam lacinia dapibus.</p>"
    ],
    [
      "<i class='fa fa-hdd-o' aria-hidden='true'></i>",
      "<h2>LIMITLESS STORAGE</h2><p>Phasellus pellentesque laoreet elementum. Quisque at condimentum arcu. Curabitur vulputate non metus et vulputate. Aenean sit amet orci non diam convallis cursus non quis massa. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Vivamus sagittis et leo vitae finibus. Proin porta elit vitae ex pellentesque imperdiet.</p>"
    ],
    [
      "<i class='fa fa-shield' aria-hidden='true'></i>",
      "<h2>DATA ENCRYPTION</h2><p>Nullam lacinia sit amet purus sed blandit. Pellentesque lobortis pellentesque dapibus. Donec condimentum vestibulum nisl, sed rhoncus massa lobortis et. Vivamus sit amet finibus mi, mattis semper eros. In quis luctus metus, a mollis mauris. Aliquam erat volutpat. Suspendisse placerat efficitur metus sit amet sollicitudin.</p>"
    ],
    [
      "<i class='fa fa-user-plus' aria-hidden='true'></i>",
      "<h2>REGISTER NOW</h2>Email: <input class='emin' placeholder='email address'></input><br>Password: <input class='pasin' placeholder='password'></input><br>Confirm: <input class='conin' placeholder='confirm password'></input><br><br><div class='submitBTN'>SUBMIT</div>"
    ]
  ];

  function pageCall(/*icon, text*/) {
    $(".iconBox").append(contents[count][0]);
    $(".textBox").append(contents[count][1]);
  }
  function empty() {
    $(".iconBox").empty();
    $(".textBox").empty();
  }

  function dotPos() {
    $(".active").removeClass("active");
    $(".dot" + count).addClass("active");
  }

  pageCall();

  $(".arrowLeft").click(function() {
    if (count !== 0) {
      count -= 1;
      empty();
      pageCall();
      dotPos();
    }
  });

  $(".arrowRight").click(function() {
    if (count !== contents.length - 1) {
      count += 1;
      empty();
      pageCall();
      dotPos();
    }
  });

  $(".dot").click(function() {
    if ($(this).hasClass("dot0")) {
      count = 0;
    } else if ($(this).hasClass("dot1")) {
      count = 1;
    } else if ($(this).hasClass("dot2")) {
      count = 2;
    } else if ($(this).hasClass("dot3")) {
      count = 3;
    }
    empty();
    pageCall();
    dotPos();
  });
});

              
            
!
999px

Console