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

              
                <!--

I want the slide out transition to resemble the wipe effect on this pages scroll jacking. 

http://www.maisonullens.com/home

-->
<div class="bagfround">
</div>	
<div class="container">
	<div data-slide="4" class="slide">
		<h1>Fun and (Brain) Games</h1>
		<p>It's clear to Jim Davis, Ed.M.'16, that a coach's impact on students should be felt far beyond the playing fields.</p>
			<div class="card">
				<img src="http://placehold.it/720x450/F06292/ffffff">
			</div>
	</div>
	<div data-slide="3" class="slide">
  	<h1>What Happens after Yes?</h1>
		<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Et velit eligendi assumenda officia, quidem vel?</p>
		<div class="card">
			<img src="http://placehold.it/720x440/BA68C8/ffffff">	
		</div>
	</div>
	<div data-slide="2" class="slide">
		<h1>Up Next: The Good Athlete Project</h1>
		<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab, omnis.</p>
  	<div class="card">
			<img src="http://placehold.it/720x440/9575CD/ffffff">	
		</div>
	</div>
	<div data-slide="1" class="slide">
		<h1>Read the Fall 2016 Issue Now</h1>
		<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus, natus, aliquam?</p>
  	<div class="card">
			<img src="http://placehold.it/720x440/7986CB/ffffff">
		</div>
	</div>
	<div data-slide="0" class="slide">
		<h1>From Teachers, For Teachers</h1>
		<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur.</p>
		<div class="card">
			<img src="http://placehold.it/720x440/64B5F6/ffffff">
		</div>
	</div>
</div>	

              
            
!

CSS

              
                body { 
	background: url('https://i.imgur.com/6cpKcSx.jpg');
}

.bagfround {
	width: 90vw;
	height: 40vh;
	background: #fff;
	border-bottom: 4px solid rgba(#03a, 0.2);
	position: relative;
	left: 5vw;
	z-index: -5;
}

.container {
	position: relative;	
	left: 5vw;
	top: -11vh;
	z-index:0;
}

.out { 
	transform: translateX(200px);
}

.slide {
	clear: both;
	margin-top: -7em;
	overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 90vw;
  height: 80vh;
	max-height: 450px;
	transition: transform 0.5s ease-in-out;
	.card { 
		max-width: 50vw;
		width: 50vw;
		float: right;
		margin-top: -15em;
		border-radius: 4px;
		-webkit-transform-origin: center;
		transform-origin: center;
		-webkit-transition: 0.4s cubic-bezier(0.28, 0.55, 0.385, 1);
		transition: 0.4s cubic-bezier(0.28, 0.55, 0.385, 1);
		cursor: pointer;
		img { 
			opacity: 0; 
			transition: opacity 0.5s ease-in-out;  
			width: 100%;
		}
	}
	h1 { 
		margin-top: 3em;
		float: left;
		width: 25vw;
		opacity: 0;
		transform: translateX(-30vw);
		transition: transform 0.5s cubic-bezier(0.28,0.55,0.385,1) 0.5s,
			opacity 0.7s ease-in-out 0.5s;
	}
	p {
		float: left;
		clear: both;
		padding-top: 2em;
		width: 30vw;
		opacity: 0;
		transform: translateX(-30vw);
		transition: transform 0.5s cubic-bezier(0.28,0.55,0.385,1) 0.7s,
								opacity 0.7s ease-in-out 0.7s;		
	}
}
.slide:nth-child(1) {
  z-index: 10;
  top: 0px;
  -webkit-transform-origin: top;
  transform-origin: top;
  -webkit-transform: scale(1);
  transform: scale(1);
  opacity: 1;
	img { opacity: 1; }
	h1 { opacity: 1; transform: translateX(0vw); }
	p { opacity: 1; transform: translateX(0vw); }
}

.slide:nth-child(2) {
  z-index: 9;
  -webkit-transform-origin: top;
  transform-origin: top;
  transform: translate(32px,-32px);
  opacity: 1;
	img { 
		opacity: 0.85
	}
}

.slide:nth-child(3) {
  z-index: 8;
  -webkit-transform-origin: top;
  transform-origin: top;
  transform: translate(64px,-64px);
  opacity: 1;
	img { 
		opacity: .5;
	}
}

.slide:nth-child(4) {
  z-index: 7;
  -webkit-transform-origin: top;
  transform-origin: top;
  transform: translate(96px,-96px);
  opacity: 1;
	img { 
		opacity: .25;
	}
}

.slide:nth-child(5) {
  z-index: 6;
  -webkit-transform-origin: top;
  transform-origin: top;
  transform: translate(128px,-128px);
  opacity: 0;
	img { 
		opacity: 0;
	}
}

.slide:first-child > .card { 
	overflow: hidden;
  transform-origin: 0% 100%;
	transition: transform 1.2s cubic-bezier(.5,0,.25,1) 0s,
							max-width 1.0s cubic-bezier(.5,0,.25,1) .2s;
	&:hover { 
		transform: translate(100vw);
   	transition: transform 2.0s cubic-bezier(.5,0,.25,1) .2s,
								max-width 2.0s cubic-bezier(.5,0,.25,1) .2s;
		max-width: 20vw;
		img { 
				transform: translate(100vw);
				opacity: 1;
				transition: transform 2.5s cubic-bezier(.5,0,.25,1) 0s,
										opacity .75s cubic-bezier(.5,0,.25,1) 0.1s;
		}
	}
	img { 
		transition: transform 1s cubic-bezier(.5,0,.25,1) 0.50s,
								opacity .75s cubic-bezier(.5,0,.25,1) 0.5s;
	}
}

.slide:last-child { opacity: 0; }
              
            
!

JS

              
                (function() {
  var rotate, timeline;
  rotate = function() {
    return $('.slide:first-child').fadeOut(600, 'swing', function() {
      return $('.slide:first-child').appendTo('.container').hide();
    }).fadeIn(600, 'swing');
  };
  timeline = setInterval(rotate, 2400);
  $('body').hover(function() {
    return clearInterval(timeline);
  });
  $('.slide').click(function() {
    return rotate();
  });
}).call(this);

              
            
!
999px

Console