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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                	<div id="container-movies">

		<div class="container-movie">
			<div class="movie">

				<div class="movie-inside front">
					<img src="http://pixel-salad.com/website/posters/img/poster1.jpg">
				</div>

				<div class="movie-inside back">
					<div class="movie-details">
						<div class="movie-snap"><img src="http://pixel-salad.com/website/posters/img/poster1-snap.jpg"></div>
						<h1>The dark knight<br><span>2008 - 2h32</span></h1>
						<ul class="movie-tags">
							<li><a href="#">Drama</a></li>
							<li><a href="#">Crime</a></li>
						</ul>
						<p class="movie-synopsis">With the help of allies Lt. Jim Gordon and DA Harvey Dent, Batman has been able to keep a tight lid on crime in Gotham City. But when a vile young criminal calling himself the Joker (Heath Ledger) suddenly throws the town into chaos, the caped Crusader begins to tread a fine line between heroism and vigilantism.</p>
					</div>
				</div>

			</div>
		</div>

		<div class="container-movie">
			<div class="movie">

				<div class="movie-inside front">
					<img src="http://pixel-salad.com/website/posters/img/poster2.jpg">
				</div>

				<div class="movie-inside back">
					<div class="movie-details">
						<div class="movie-snap"><img src="http://pixel-salad.com/website/posters/img/poster2-snap.jpg"></div>
						<h1>The assassin<br><span>2015 - 2h</span></h1>
						<ul class="movie-tags">
							<li><a href="#">Drama</a></li>
							<li><a href="#">Action</a></li>
						</ul>
						<p class="movie-synopsis">During the ninth century, a general's young daughter is kidnapped and trained to become an exceptional assassin. When she doesn't execute a mission, she is ordered to kill her betrothed, forcing her to choose between love, family and the assassins.</p>
					</div>
				</div>

			</div>
		</div>

		<div class="container-movie">
			<div class="movie">

				<div class="movie-inside front">
					<img src="http://pixel-salad.com/website/posters/img/poster3.jpg">
				</div>

				<div class="movie-inside back">
					<div class="movie-details">
						<div class="movie-snap"><img src="http://pixel-salad.com/website/posters/img/poster3-snap.jpg"></div>
						<h1>Rogue one<br><span>2016 - 2h13</span></h1>
						<ul class="movie-tags">
							<li><a href="#">Science-fiction</a></li>
							<li><a href="#">Action</a></li>
						</ul>
						<p class="movie-synopsis">Former scientist Galen Erso lives on a farm with his wife and young daughter, Jyn. His peaceful existence comes crashing down when the evil Orson Krennic takes him away from his beloved family. Many years later, Galen becomes the Empire's lead engineer for the most powerful weapon in the galaxy, the Death Star.</p>
					</div>
				</div>

			</div>
		</div>

	</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Open+Sans:700,400');

body{
	margin: 0;
	padding: 0;
	background-color: #555;
	font-family: 'Open Sans', sans-serif;
}
#container-movies{
	position: absolute;
	width: 100%;
	height: 100%;

	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}
.container-movie{
	position: relative;
	margin: 50px 40px;
	perspective: 1000px;
}
.movie{
	position: relative;
	width: 270px;
	height: 400px;
	transform-style: preserve-3d;
	transform: rotateY(0deg) translateZ(-130px);
	-webkit-transform: rotateY(0deg) translateZ(-130px);
	-moz-transform: rotateY(0deg) translateZ(-130px);
	transition: all 0.5s ease-in-out;
	-moz-transition: all 0.5s ease-in-out;
	-webkit-transition: all 0.5s ease-in-out;
}
.movie .movie-inside{
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 3;
	transition: all 0.5s ease-in-out;
	-moz-transition: all 0.5s ease-in-out;
	-webkit-transition: all 0.5s ease-in-out;
	backface-visibility: hidden;
	box-shadow: 0 5px 7px rgba(0,0,0,.15);

}
.container-movie .movie .front{
	transform-origin: 0%;
	-webkit-transform-origin: 0%;
	-moz-transform-origin: 0%;

	transform: translateZ(130px);
	-webkit-transform: translateZ(130px);
	-moz-transform: translateZ(130px);

	background-color: #000;
}
.container-movie:hover .front{
	opacity: 1;
	transition: opacity 0.5s ease-in-out;
	-moz-transition: opacity 0.5s ease-in-out;
	-webkit-transition: opacity 0.5s ease-in-out;
}
.container-movie .movie .back{
	transform-origin: 100%;
	transform: rotateY(90deg) translateX(140px) translateZ(0px);
	-webkit-transform: rotateY(90deg) translateX(140px) translateZ(0px);
	-moz-transform: rotateY(90deg) translateX(140px) translateZ(0px);
	background: linear-gradient(#fff, #e6e4e4);
}
.container-movie:hover .movie{
	transform: rotateY(-78deg) translateX(-70px) translateZ(0px);
	-webkit-transform: rotateY(-78deg) translateX(-70px) translateZ(0px);
	-moz-transform: rotateY(-78deg) translateX(-70px) translateZ(0px);
}
.container-movie:hover .front{
	opacity: 0.5;
}

/* MOVIE DETAILS */
.movie-details{
	position: relative;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(-90deg, #fff, #eee);
}
.movie-details h1{
	position:relative;
	font-size: 20px;
	font-weight: 700;
	color: #464646;
	text-align: left;
	margin: 10px; 
	text-transform: uppercase;
}
.movie-details h1 span{
	font-size: 14px;
	font-weight: 400;
	color: #aaa;
	text-transform: lowercase;
}
.movie-tags{
	position: relative;
	margin: 0 10px;
	padding: 0;
}
.movie-tags li{
	position: relative;
	list-style: none;
	display: inline-block;
	background-color: #ccc;
	margin: 0;
	padding: 3px 7px;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-webkit-transition: all 0.2s ease-in-out;
}
.movie-tags li a{
	position: relative;
	text-decoration: none;
	font-size: 10px;
	line-height: 30px;
	text-transform: uppercase;
	color: #fff;
}
.movie-tags li:hover{
	background-color: #aaa;
}
.movie-synopsis{
	width: 90%;
	font-size: 12px;
	line-height: 15px;
	padding: 10px;
}
              
            
!

JS

              
                
              
            
!
999px

Console