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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              <!-- 
// Photos provided by Pexels.com: 
High quality and completely free stock photos 
licensed under the Creative Commons Zero (CC0) license. 
-->

<section id="scene" data-pointer-events="true" data-x-origin="0.5" data-y-origin="0.5" data-scalar-y="150.0" data-scalar-x="100.0" data-friction-x="0.05" data-friction-y="0.05">
	<div class="layer main" data-depth="1.0">
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img1.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img2.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img3.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img4.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img5.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img6.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img7.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img8.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img9.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img11.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img1.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img2.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img3.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img4.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img5.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img6.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img1.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img2.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img3.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img4.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img5.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img6.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img7.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img8.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img9.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img11.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img1.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img2.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img3.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img4.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img5.jpg);"></div>
			</a>
		</div>
		<div class="col">
			<a href="#">
				<div class="hover">
					<div class="pad align-bottom">
						<h2>Project Title</h2>
					</div>
					<div class="more"><i class="demo-icon icon-plus"></i></div>
				</div>
				<div class="bg-img" style="background-image:url(http://www.caseycallis.com/codepen/img6.jpg);"></div>
			</a>
		</div>
	</div>
</section>
            
          
!
            
              a{
	text-decoration:none;
	color:white;
}
h2{
	font-family:"Voltaire";
	text-transform:uppercase;
	margin:0;
}
#scene{
	background-color:#304056;
	position:relative;
	overflow:hidden;
	width:100%;
}
.layer{
	pointer-events: none;
}
.col {
	display: inline-block;
	float: left;
	overflow: hidden;
	position: relative;
	width:12.5%;
	pointer-events: all;
	overflow:initial;
	margin:0 0 30px;
}
.layer.main{
	width:150%;
	position:absolute;
	z-index:1;
	padding:20px;
}
.col a{
	display:block;
	margin:15px;
	overflow:hidden;
	box-shadow: 0px 16px 32px rgba(0, 0, 0, 0.37);
}
.col a .hover {
	position: absolute;
	top: 15px;
	right:15px;
	bottom:-15px;
	left: 15px;
	z-index: 1;
	color: white;
	background: -moz-linear-gradient(45deg, rgba(0,0,0,0.47) 0%, rgba(0,0,0,0) 100%);
	background: -webkit-linear-gradient(45deg, rgba(0,0,0,0.47) 0%,rgba(0,0,0,0) 100%);
	background: linear-gradient(45deg, rgba(0,0,0,0.47) 0%,rgba(0,0,0,0) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#78000000', endColorstr='#00000000',GradientType=1 );
}
.col a .hover:after{
	content:'';
	position:absolut;
	top:0;
	left:0;
	z-index:1;
	width:100%;
	height:100%;
	display:block;
	background: rgb(235, 116, 152);
	opacity:0;
	transition:0.35s ease;
}
.col a .hover:hover:after{
	opacity:0.85;
	transition:0.35s ease;
}
.align-bottom {
	position: absolute;
	width: 100%;
	bottom: 0%;
	z-index: 2;
	padding: 15px 20px;
}
.bg-img{
	padding:0px;
	width:100%;
	height:100%;
	top:0;
	left:0;
	background-size:cover;
	background-position:50% 50%;
}

@media only screen and (max-width:1200px){
	.layer .col{
		width:16.666%;
	}
	
}
@media only screen and (max-width:650px){
	.layer .col{
		width:25%;
	}
	
}
            
          
!
            
              var makeWinHeight = function(){
	var vh = $(window).height();
	var projects = vh/2;
	$('#scene, .layer.main').height(vh);
	$('#scene .col a, #scene .col').height(projects);
}
$(document).ready(function(){
	makeWinHeight();

});
$(window).resize(function(){
	makeWinHeight();
});

var scene = document.getElementById('scene');
var parallax = new Parallax(scene);
            
          
!
999px
Loading ..................

Console