css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!-- BE SURE TO VIEW IN FULL MODE FOR THE FULL EFFECT -->

<div class="container-fluid w-400vw">
  <div class="w-400vw h-100vh" id="bgElements">
     <div class="p-absolute bg-white"></div>
     <div class="p-absolute bg-white"></div>
     <div class="p-absolute bg-white"></div>
     <div class="p-absolute bg-white"></div>
     <div class="p-absolute bg-white"></div>
     <div class="p-absolute bg-white"></div>
  </div>
  <div class="row list-inline h-100vh bg-blue">
    <div class="col-3 m-0 h-100vh w-100vw list-inline-item horizontal-section" id="intro">
      <div class="row h-15"></div>
        <div class="row">
          <div class="col-12 col-md-4 offset-md-2 col-sm-6">
            <h1 class="font-weight-bold text-white">Horizontal scrolling theme</h1>
            <h4 class="font-weight-200 text-white">For all your horizontal navigation needs</h4>
          </div>
          <div class="col-12 col-md-3 col-sm-6 offset-md-3 offset-sm-6 form-group bg-white p-5 text-right" id="signup">
            <h2 class="mb-4">Sign up to learn more</h2>
            <input type="email" value="email" class="form-control ml-auto w-75 text-right pull-right">
            <button class="btn btn-lg btn-red mt-3">Sign Up</button>
          </div>
        </div>
    </div>

    <div class="col-3 m-0 h-100vh w-100vw p-0 p-sm-5 list-inline-item horizontal-section" id="section2">
      <div class="row mb-5 mt-4">
        <div class="col-12 col-sm-4">
          <div class="flip-container mx-auto">
            <div class="flipper">
              <div class="front"></div>
              <div class="back"></div>
            </div>
          </div>
        </div>
        <div class="col-12 col-sm-4 p-0">
          <p class="align-bottom text-white text-center px-0 px-md-5 pt-5">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ac enim magna. Phasellus neque est, tempus a venenatis vel, convallis ut purus.</p>
        </div>
        <div class="col-12 col-sm-4">
          <div class="flip-container mx-auto">
            <div class="flipper">
              <div class="front"></div>
              <div class="back"></div>
            </div>
          </div>
        </div>
      </div>
<!--       <div class="row spacer"></div> -->
      <div class="row">
        <div class="col-12 col-sm-4">
          <p class="align-top text-white text-center mr-3 px-0 px-md-5">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ac enim magna. Phasellus neque est, tempus a venenatis vel, convallis ut purus.</p>
        </div>
        <div class="col-12 col-sm-4">
          <div class="flip-container mx-auto">
            <div class="flipper">
              <div class="front"></div>
              <div class="back"></div>
            </div>
          </div>
        </div>
        <div class="col-12 col-sm-4">
          <p class="align-top text-white text-center mr-3 px-0 px-md-5">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ac enim magna. Phasellus neque est, tempus a venenatis vel, convallis ut purus.</p>
        </div>
      </div>
    </div>
    <div class="col-3 m-0 h-100vh w-100vw list-inline-item horizontal-section">
      <div class="container" id="heroImg">
        <div class="col-12 col-md-6">
          <h1 class="text-white pt-0 pt-md-5 ml-5 mt-5 mb-4">Lorem Ipsum Dolor Sit Amet</h1>
          <p class="text-white pl-5 ml-5 ls-2">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ac enim magna. Phasellus neque est, tempus a venenatis vel, convallis ut purus.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ac enim magna. Phasellus neque est, tempus a venenatis vel, convallis ut purus.</p>
          <div class="col-4 offset-4">
            <button class="btn btn-red btn-lg mt-3 px-5 py-3 btn-switch">Learn More</button>
          </div>
        </div>
      </div>
    </div>
    <div class="col-3 m-0 h-100vh w-100vw list-inline-item horizontal-section">

    </div>
</div>
</div>

<!--FOOTER-->
<footer class="footer fixed-bottom bg-white">
  <div class="container-fluid px-5 pt-4">    
    <div class="row list-inline">
          <div class="col-2 list-inline-item">
            <ul class="list-unstyled">
              <li class="list-item font-weight-bold">GitHub</li>
              <li class="list-item"><a href="#">About us</a></li>
              <li class="list-item"><a href="#">Blog</a></li>
              <li class="list-item"><a href="#">Contact & support</a></li>
            </ul>
          </div>
          <div class="col-2 list-inline-item">
            <ul class="list-unstyled">
              <li class="list-item font-weight-bold">Applications</li>
              <li class="list-item"><a href="#">Product for Mac</a></li>
              <li class="list-item"><a href="#">Product for Windows</a></li>              
            </ul>
          </div>
          <div class="col-2 list-inline-item">
            <ul class="list-unstyled">
              <li class="list-item font-weight-bold">Services</li>
              <li class="list-item"><a href="#">Web analytics</a></li>
              <li class="list-item"><a href="#">Presentations</a></li>
              <li class="list-item"><a href="#">Job board</a></li>              
            </ul>
          </div>
          <div class="col-2 list-inline-item">
            <ul class="list-unstyled">
              <li class="list-item font-weight-bold">Documentation</li>
              <li class="list-item"><a href="#">Product Help</a></li>
              <li class="list-item"><a href="#">Developer API</a></li>
              <li class="list-item"><a href="#">Product Pages</a></li>              
            </ul>
          </div>
          <div class="col-2 list-inline-item">
            <ul class="list-unstyled">
              <li class="list-item font-weight-bold">More</li>
              <li class="list-item"><a href="#">The Shop</a></li>
              <li class="list-item"><a href="#">Plans & pricing</a></li>
              <li class="list-item"><a href="#">Contact us</a></li>
            </ul>        
          </div>

      </div>
      <hr>
        <div class="row">
          <div class="col-8">
            <a class="mr-4" href="#">Terms of Service</a>    
            <a class="mr-4" href="#">Privacy</a>    
            <a href="#">Security</a>
          </div>
          <div class="col-4">
            <p class="text-muted pull-right">© 2013 Company Name.<br>Theme by IrrelevantEvan</p>
          </div>
        </div>
      
    </div>
</footer>

            
          
!
            
              /* BE SURE TO VIEW IN FULL MODE FOR THE FULL EFFECT */

body {
	height: 100vh;
  width: 100vw;
  overflow: hidden;
}
* {
	color: #636c72;
}
body > div.container-fluid {
  transition: 0.5s ease;
}
a {
	color: #636c72;
}
a:hover {
	color: #222222;
}
.font-weight-200 {
	font-weight: 200;
}
.bg-blue {
	background-color: #00b5c5; /* Old browsers */
	background: -moz-linear-gradient(-45deg, #4774e5 0%, #2072ca 0%, #8669d3 0%, #00acc6 73%, #2bcfc9 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(-45deg, #4774e5 0%,#2072ca 0%,#8669d3 0%,#00acc6 73%,#2bcfc9 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(135deg, #4774e5 0%,#2072ca 0%,#8669d3 0%,#00acc6 73%,#2bcfc9 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4774e5', endColorstr='#2bcfc9',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
.bg-white {
	background-color: #FFF;
}
.h-15 {
	height: 15vh;
}
.btn-red {
	background-color: #ff9393;
	border-radius: 0;
	color: #FFF;
}
#signup {
	border-radius: 5%;
}
.h-100vh {
	height: 100vh;
}
.w-100vw {
	width: 100vw;
}
.w-400vw {
	width: 400vw;
}
.flip-container {
	perspective: 1000px;
}
.flip-container:hover .flipper {
		transform: rotateY(180deg);
}
.flip-container, .front, .back {
	width: 20vw; max-width: 200px;
	height: 20vw; max-height: 200px;
}
.flipper {
	transition: 0.6s;
	transform-style: preserve-3d;
	position: relative;
}
.front, .back {
	backface-visibility: hidden;
	position: absolute;
	top: 0;
	left: 0;
}
.front {
	z-index: 2;
	transform: rotateY(0deg);
	background-color: #FFF;
}
.back {
	transform: rotateY(180deg);
	background-color: #222222;
}
.align-bottom {
	position: absolute;
	bottom: 0;
}
.align-top {
	position: absolute;
	top: 0;
}
footer * {
  font-size: 2vh;
}
.form-control {
	color: #bbbbbb!important;
}
.spacer {
	height: 5vh;
}
.ls-2 {
	line-height: 2em;
}
#heroImg {
	position: absolute;
	top: 0; left: 0;
	height: 100%; width: 100%;
	background-image: url("https://static.pexels.com/photos/36487/above-adventure-aerial-air.jpg");
	background-size: 180%;
	mix-blend-mode: lighten;
/* 	background-position: 46.6% 55%; */
  background-position: 50% 60%;
  background-repeat: no-repeat;
  filter: flipH;
	opacity: 1;
}
#bgElements {
	position: absolute;
	top: 0; left: 0;
}
.p-absolute {
	position: absolute;
}
#bgElements div:nth-child(1) {
	width: 400px; height: 400px;
	left: 0;
	bottom: 10vh;
	opacity: 0.4;
	mix-blend-mode: overlay;
}
#bgElements div:nth-child(2) {
	width: 250px; height: 250px;
	left: 20vw;
	bottom: 35vh;
	opacity: 0.3;
	mix-blend-mode: overlay;
}
#bgElements div:nth-child(3) {
	width: 300px; height: 300px;
	right: 5vw;
	bottom: 30vh;
	opacity: 0.3;
	mix-blend-mode: screen;
}
#bgElements div:nth-child(4) {
	width: 500px; height: 500px;
	right: 25vw;
	bottom: 35vh;
	opacity: 0.5;
	mix-blend-mode: overlay;
}
#bgElements div:nth-child(5) {
	width: 75px; height: 75px;
	left: 29vw;
	bottom: 32vh;
	opacity: 0.7;
	mix-blend-mode: screen;
}
#bgElements div:nth-child(6) {
	width: 100px; height: 100px;
	right: 19vw;
	bottom: 55vh;
	opacity: 0.6;
	mix-blend-mode: screen;
}
.btn-switch:hover {
	color: #ff9393;
	background-color: #FFF;
  transform: scale(1.2);
}
#signup button {
  transition: 0.3s ease;
}
#signup button:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 5px 0 #D2D6F1;
}
@media (max-width: 750px) {
	.h-15 {
		height: 10vh;
	}
}
@media (min-height: 750px) {
	footer * {
		font-size: 1.65vh;
	}
}
@media (max-width: 700px) {
	#bgElements div:nth-child(4) {
		width: 70vw;
		height: 70vw;
	}
}
@media (max-width: 650px) {
	.h-15 {
		height: 5vh;
	}
}
@media (max-height: 600px) {
	footer * {
		font-size: 13px;
	}
}
@media (max-width: 576px) {
	#section2 p {
		display: none;
	}
	.col-12 > .flip-container:first-child {
		margin-top: 5vh;
	}
}
@media (max-width: 500px) {
	.ls-2 {
		line-height: 3vh;
	}
}
            
          
!
            
              //BE SURE TO VIEW IN FULL MODE FOR THE FULL EFFECT

var scrollCountLeft = 0

// window.onresize = function() {
//  var windowWidth = $(window).width(); 
// }

$(window).bind('mousewheel', function(e){
  var windowWidth = $(window).width();
  $( window ).resize(function() {
    $("body > div.container-fluid").css("transform","translateX(0)");
    var windowWidth = $(window).width(); 
    var scrollCountLeft = 0
  });
  if(e.originalEvent.wheelDelta < 0) {
    scrollCountLeft = scrollCountLeft + 1;
    if(scrollCountLeft>3) {
      scrollCountLeft=3;
    }
    $("body > div.container-fluid").css("transform","translateX(" + (windowWidth * scrollCountLeft * -1) + "px)");
    // scrollCountLeft = scrollCountLeft + 1;
    // $(window).scrollLeft(windowWidth * scrollCountLeft);
    // if(scrollCountLeft>3) {
    //   scrollCountLeft=3;
    // }
  }
  if(e.originalEvent.wheelDelta > 0) {
      var windowWidth = $(window).width();
    $( window ).resize(function() {
      $("body > div.container-fluid").css("transform","translateX(0)");
      var windowWidth = $(window).width(); 
      var scrollCountLeft = 0
    });
    scrollCountLeft = scrollCountLeft - 1;
    if(scrollCountLeft<0) {
      scrollCountLeft=0;
    }
    $("body > div.container-fluid").css("transform","translateX(" + (windowWidth * scrollCountLeft * -1) + "px)");
  //   scrollCountLeft = scrollCountLeft - 1;
  //   if(scrollCountLeft<0) {
  //     scrollCountLeft=0;
  //   }
  //   $(window).scrollLeft(windowWidth * scrollCountLeft);
  }
});
var isFirefox = 
                  navigator.userAgent.toLowerCase().indexOf('firefox') > -1; 
if(isFirefox) {
  
$(window).on('mousewheel DOMMouseScroll', function(event){
  $( window ).resize(function() {
      $("body > div.container-fluid").css("transform","translateX(0)");
      var windowWidth = $(window).width(); 
      var scrollCountLeft = 0
    });
  if(event.originalEvent.detail > 0) {
    scrollCountLeft = scrollCountLeft + 1;
    if(scrollCountLeft>3) {
      scrollCountLeft=3;
    }
    $("body > div.container-fluid").css("transform","translateX(" + (windowWidth * scrollCountLeft * -1) + "px)");
//     scrollCountLeft = scrollCountLeft + 1;
//     $(window).scrollLeft(windowWidth * scrollCountLeft);
//     if(scrollCountLeft>3) {
//       scrollCountLeft=3;
//     }
  }
  if(event.originalEvent.wheelDelta < 0) {
    $( window ).resize(function() {
      $("body > div.container-fluid").css("transform","translateX(0)");
      var windowWidth = $(window).width(); 
      var scrollCountLeft = 0
    });
    scrollCountLeft = scrollCountLeft - 1;
    if(scrollCountLeft<0) {
      scrollCountLeft=0;
    }
    $("body > div.container-fluid").css("transform","translateX(" + (windowWidth * scrollCountLeft * -1) + "px)");
//     scrollCountLeft = scrollCountLeft - 1;
//     if(scrollCountLeft<0) {
//       scrollCountLeft=0;
//     }
//     $(window).scrollLeft(windowWidth * scrollCountLeft);
  }
});
  
}
var windowWidth = $(window).width(); 
            
          
!
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