Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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 id="slides">
	<div class="box box5 slide">
		<div class="sideDetails side5">
			<div class="detailsText"><ul>
						<li>five</li>
						<li>Ideation Sketching</li>
						<li>3D Visualisation</li>
						<li>Market Analysis</li>
						<li>Trend Reports</li>
						<li>CAD Production Files</li>
						<li>Factory Liason</li>
					</ul></div>
		</div>
	</div>
	<div class="box box4 slide " >
		<div class="sideDetails side4 ">
			<div class="detailsText"><ul>
						<li>four</li>
						<li>Dive reow</li>
						<li>3D Visualisation</li>
						<li>Market Analysis</li>
						<li>Trend Reports</li>
						<li>CAD Production Files</li>
						<li>Factory Liason</li>
					</ul></div>
		</div>
	</div>
	<div class="box box3 slide">
		<div class="sideDetails side3">
			<div class="detailsText"><ul>
						<li>three</li>
						<li>pow Sketching</li>
						<li>3D Visualisation</li>
						<li>Market Analysis</li>
						<li>Trend Reports</li>
						<li>CAD Production Files</li>
						<li>Factory Liason</li>
					</ul></div>
		</div>
	</div>
	<div class="box box2 slide">
		<div class="sideDetails side2">
			<div class="detailsText">
			<h2>Photography</h2>
			<ul>
				<li>LIVE ACTION</li>
				<li>PRODUCT DEMO</li>
				<li>PRESENTATION</li>
				<li>DIRECT RESPONSE</li>
				<li>CG ANIMATION</li>
				<li>CORPORATE</li>
				<li>CONFERENCING</li>
			</ul>
			</div>
			
		</div>
	</div>
	<div class="box box1 slide currentSlide">
		<div class="sideDetails side1">
			<div class="detailsText">
				<h2>Design</h2>
				<ul>
					<li>Branding</li>
					<li>Adverting</li>
					<li>Marketing Strategy</li>
					<li>Packaging</li>
					<li>Editorial</li>
					<li>Illustration</li>
					<li>Digital</li>
				</ul>
			</div>
		</div>
		<video id="main-panel-video" class="full-panel" loop autoplay data-autoplay preload="auto" poster="http://www.ciconline.co.uk/img/cic-showreel-loop-main-still.jpg" data-setup="{}">
           <source src="http://www.ciconline.co.uk/img/cic-showreel-loop-v4.mp4" type='video/mp4'>
        </video>
	</div>

<div id="nav">
  <div id="prevtBtn" class="fa fa-chevron-circle-left"></div>
  <div id="nextBtn" class="fa fa-chevron-circle-right"></div>
</div>
  </body>
              
            
!

CSS

              
                body,html{  
	width: 100%;  
	height: 100%;
}
		  
body {
  background-color: #222;
  padding: 0px;
  margin: 0px;
  overflow: hidden;
	font-size: 62.5%;
}
		  
.full-panel {
    position: relative;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    overflow: hidden;
    min-height: 100vh;
    clear: both;
}
		  
h2 {
	font-size: 3em;
}
		  
#prevtBtn,#nextBtn{
  color: white;
  font-size: 45px;
  margin: 15px 15px 0px 15px;
  position: relative;
}

.box {
  width: 100%;
  height: 100%;
  position: absolute;
  text-align: center;
  font-size: 40px;
  color: white;
  font-family:'Oswald', arial; 
  top:0px;
  left:0px;
}
.slide .sideDetails{
  display:block;
  position:absolute;
   top:0;
	height: 100%;
	width: 50%;
}
		  
.detailsText{
	position:absolute;
  -webkit-transform:translateY(-50%);
  transform:translateY(-50%);
  top:50%;
	margin-left: 150px;
}
		  
		  
  .detailsText ul li{
	  list-style: none;
	  font-family: din-condensed,Helvetica Neue,Arial,sans-serif;
	  text-transform: uppercase;
	  text-align: left;
	 
	  line-height: 1;
  }


 .box2 .detailsText ul li{

	color: #66CC99;
  }

  .box1 .detailsText ul li{
	color: #66CCFF;
  }

  .detailsText h2{
	  text-align: left;
  }

  .currentSlide .sideDetails{
	  z-index: 5;
  }		  
		  

.box.box1 {
  
}
.box.box2 {
  background-color: lightgreen;
}
.box.box3 {
  background-color: yellow;
}
.box.box4 {
  background-color: orange;
}
.box.box5 {
  background-color: red;
}
		  
.side1{
	background-color: #2d83aa;
}
.side2{
	background-color: #219382;
}
.side3{
	background-color: black;
}
.side4{
	background-color: #219382;
}
.side5{
	background-color: #2d83aa;
}

#logo {
  border-radius: 50%; 
  position:absolute;
  z-index:5000;
  top:20px; left:20px;
}


#links{
	z-index:500;
	position:absolute;
	bottom:0px;
	left:0px;
	width:100%;
	height:50px;
	font-size:14px;
	font-family:tahoma;
	color:#fff;
}
#links a{
	text-decoration:none;
	font-size:2.3em;
	color:#fff;
}
#twitter{
	position:absolute;
	bottom:15px;
	right:20px;
}
		  
#pens{position:absolute;
	bottom:15px;
	left:20px;
}
              
            
!

JS

              
                var slides=document.querySelectorAll('.slide'); 
var tl=new TimelineLite({paused:true});	

for(var i=slides.length;i--;){

	if(i>0){
		if(i!=slides.length-1)
		{
			tl.addPause()
		}
		
		
		
		var thisSlide = ".currentSlide";
		var thisSlideIndex = $('.slide').index($(thisSlide));
		var nextSlideIndex = thisSlideIndex;  
		var nextSlide = ".slide:nth-child(" + nextSlideIndex + ")";
		
		
		tl	.set(nextSlide + " .sideDetails", {width: "0"})
			.staggerTo(thisSlide + " .detailsText ul li", 0.6, {y: "+=60",opacity: "0", ease: Power4.easeInOut }, -0.025)
			.to(thisSlide + " .detailsText h2", 0.6, {x: "-=200", opacity: "0", ease: Power4.easeInOut }, 0)
		  	.to(thisSlide + " .sideDetails", 0.6,{ width: "100%", ease: Power2.easeInOut}, 0)
			.set(thisSlide + " video", { display: "none"}, 0.6)
			.fromTo(thisSlide + " .sideDetails", .6, {x: "0%"},{ x: "100%", ease: Power4.easeInOut}, .6)
			.set(nextSlide + " .sideDetails", {x:"0%"})
			.to('#Dot'+i,.7,{backgroundColor:'rgba(255,255,255,0.2)'},'L'+i)
			.to(nextSlide + " .sideDetails", .6,{width: "50%",ease: Power4.easeInOut}, 1)
		    .fromTo(nextSlide + " .detailsText h2", 0.6,{x: "-=100", opacity:"0"}, {x: "0", opacity:"1", ease: Power4.easeInOut },1)
		    .staggerFrom(nextSlide + " .detailsText ul li", 0.6, {y: "+=60",opacity: "0", ease: Power4.easeInOut }, 0.025, "-=0.6")
			.call(function(){ nextSlide = ".slide:nth-child(" + nextSlideIndex + 1 + ")" }) 
			.set(thisSlide, {className:"-=currentSlide"})
			.set(nextSlide, {className:"+=currentSlide"})
		    .addPause()
		    
	};
};
		  
function GO(e){
  var SD=isNaN(e)?e.wheelDelta||-e.detail:e;
  if(SD<0){tl.play()}else{tl.reverse()};
};
 
document.addEventListener("mousewheel",GO);
document.addEventListener("DOMMouseScroll",GO);
document.getElementById('nextBtn').addEventListener("click",function(){GO(-1)});
document.getElementById('prevtBtn').addEventListener("click",function(){GO(1)});

              
            
!
999px

Console