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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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.

HTML

            
              <html>
<head>
	<title>Animation Contest</title>
</head>
<body>
			<div class="container">
				<div class="mustang_container">
					<div class="mustang">
						<div class="mustang_body"></div>
						<div class="mustang_shadow"></div>
						<div class="mustang_burnout"></div>
						<div class="mustang_smoke"></div>
						<div class="mustang_arch">
							<div class="mustang_rear_arch"></div>
							<div class="mustang_front_arch"></div>
						</div>
						<div class="mustang_wheels">
							<div class="mustang_rear_wheel"></div>
							<div class="mustang_front_wheel"></div>
						</div>
					</div>
				</div><!--mustang container-->
				<div class="camaro_container">
					<div class="camaro">
						<div class="camaro_body"></div>
						<div class="camaro_shadow"></div>
						<div class="camaro_burnout"></div>
						<div class="camaro_smoke"></div>
						<div class="camaro_arch">
							<div class="camaro_rear_arch"></div>
							<div class="camaro_front_arch"></div>
						</div>
						<div class="camaro_wheels">
							<div class="camaro_rear_wheel"></div>
							<div class="camaro_front_wheel"></div>
						</div>
					</div>
				</div><!--camaro container-->
			</div><!--container-->
			<!--<div class="effects_container">
				<div class="camaro_track"></div>
				<div class="mustang_track"></div>
			</div>-->	
			<audio autoplay>
				<source src="http://flexteam.bugs3.com/sound/drag_cut.mp3">
			</audio> 
</body>
</html>
            
          
!

CSS

            
              /* Eric Meyer's CSS Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/* End of Eric Meyer's CSS Reset */

html {
	font-size:62.5%;
	height: 100%;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
	display: block;
}
body {
	background:#57595E;
	font: 1.5rem/1.8rem Arial, sans-serif;
	height: 100%;
}
/*=================================== General Styles ===================================*/
.container{
	background:url('https://i.imgur.com/gFLqUqc.jpg') no-repeat 0 0;
	height:47.1rem;
	position:relative;
	width:100%;
	z-index:10;
}
.effects_container{
	display:block;
	position:relative;
}
.mustang, .camaro{
	display:block;
	position:absolute;
}
.mustang_body, 
.camaro_body, 
.mustang_wheels, 
.camaro_wheels, 
.mustang_front_wheel, 
.camaro_front_wheel, 
.mustang_rear_wheel, 
.camaro_rear_wheel, 
.camaro_arch,
.mustang_arch,
.mustang_shadow,
.camaro_shadow, 
.mustang_burnout,
.camaro_burnout,
.mustang_container,
.camaro_container,
.mustang_smoke,
.camaro_smoke{
	position:absolute;
}
.mustang_front_wheel, 
.camaro_front_wheel, 
.mustang_rear_wheel, 
.camaro_rear_wheel{
	z-index:9;
}
.camaro_front_arch,
.camaro_rear_arch, 
.mustang_front_arch, 
.mustang_rear_arch{
	position:absolute;
	z-index:8;
}
/*=================================== Mustang Styles ===================================*/
.mustang{
	left:10rem;
	top:22rem;
	z-index:11;
}
.mustang_body{
	background:url('https://i.imgur.com/KZNKSL3.png') no-repeat;
	display:block;
	height:13rem;
	width:47rem;
	z-index:10;
}
.mustang_shadow{
	background:url('https://i.imgur.com/ujc3vWd.png') no-repeat;
	display:block;
	height:9.8rem;	
	left:1.6rem;
	opacity:0.7;
	top:6.4rem;
	width:43.2rem;
	z-index:9;
}
.mustang_burnout{
	background:url('https://i.imgur.com/NNcANHM.png') no-repeat;
	display:block;
	height:5.3rem;	
	left:1.6rem;
	opacity:0;
	top:9.7rem;
	width:18.2rem;
	z-index:9;
}
.mustang_smoke{
	background:url('https://i.imgur.com/9jSKiHp.png') no-repeat;
	opacity:0;
	display:block;
	height:12rem;
	left:-4rem;
	top:3rem;
	width:14rem;
	z-index:13;
}
/*.mustang_track{
	background:url('../img/mustang_track.png') no-repeat;
	display:block;
	height:5.7rem;	
	left:1.6rem;
	top:-31.3rem;
	width:92.8rem;
	z-index:12;
}*/
.mustang_front_wheel{
	background:url('https://i.imgur.com/WScv1S3.png') no-repeat;
	border-radius:2.9rem;
	display:block;
	height:5.8rem;
	left:35.2rem;
	top:8.7rem;
	width:5.8rem;
}
.mustang_rear_wheel{
	background:url('https://i.imgur.com/AOyUAAB.png') no-repeat;
	border-radius:3.5rem;
	display:block;
	height:7.1rem;
	left:6.9rem;
	top:7.5rem;
	width:7.1rem;
}
.mustang_front_arch{
	background:url('https://i.imgur.com/IK9eMLH.png') no-repeat;
	display:block;
	height:4.3rem;
	left:34.1rem;
	top:8rem;
	width:8.3rem;
}
.mustang_rear_arch{
	background:url('https://i.imgur.com/gpxb3J4.png') no-repeat;
	display:block;
	height:3.4rem;
	left:6.5rem;
	top:8.3rem;
	width:8.5rem;
}
/*=================================== Camaro Styles ===================================*/
.camaro{
	left:10rem;
	top:6.5rem;
	z-index:11;
}
.camaro_body{
	background:url('https://i.imgur.com/quNT5C8.png') no-repeat;
	display:block;
	height:13rem;
	width:47rem;
	z-index:10;
}
.camaro_shadow{
	background:url('https://i.imgur.com/leJVIb8.png') no-repeat;
	display:block;
	height:9.3rem;
	left:-1.5rem;
	opacity:0.7;
	top:6.8rem;
	width:45.9rem;
	z-index:9;
}
.camaro_burnout{
	background:url('https://i.imgur.com/mnTEZI5.png') no-repeat;
	display:block;
	height:5.3rem;	
	left:1.6rem;
	opacity:0;
	top:9.8rem;
	width:18.2rem;
	z-index:9;
}
.camaro_smoke{
	background:url('https://i.imgur.com/w2mShud.png') no-repeat;
	opacity:0;
	display:block;
	height:13rem;
	left:-4rem;
	top:3rem;
	width:14rem;
	z-index:13;
}
/*.camaro_track{
	background:url('../img/camaro_track.png') no-repeat;
	display:block;
	height:5.2rem;	
	left:1.6rem;
	top:-15.3rem;
	width:90.8rem;
	z-index:12;
}*/
.camaro_front_wheel{
	background:url('https://i.imgur.com/YpvQ8qv.png') no-repeat;
	border-radius:2.9rem;
	display:block;
	height:5.8rem;
	left:35.1rem;
	top:8.7rem;
	width:5.8rem;
}
.camaro_rear_wheel{
	background:url('https://i.imgur.com/5l5Z4Kr.png') no-repeat;
	border-radius:3.55rem;
	display:block;
	height:7rem;
	left:6.7rem;
	top:7.7rem;
	width:7.1rem;
}
.camaro_front_arch{
	background:url('https://i.imgur.com/SzWqy50.png') no-repeat;
	display:block;
	height:5.3rem;
	left:33.3rem;
	top:6.6rem;
	width:9rem;
}
.camaro_rear_arch{
	background:url('https://i.imgur.com/sACmxOc.png') no-repeat;
	border-radius:3.55rem;
	display:block;
	height:4.3rem;
	left:5.2rem;
	top:7.6rem;
	width:10rem;
}
/*================================ Animations =====================================*/
/*================================ Animations =====================================*/
.mustang{
	animation: mustang 4s 3s linear;
	-webkit-animation: mustang 4s 3s linear;
}
.camaro{
	animation: camaro 4s 3s linear;
	-webkit-animation: camaro 4s 3s linear;
}
.container{
	animation: road 4s 3s linear;
	-webkit-animation: road 4s 3s linear;
}
.camaro_rear_wheel{
	animation: mustang_rear_wheel 6s 1s linear;			
	-moz-animation-fill-mode:forwards;	
	animation-iteration-count: 1;
	-webkit-animation: mustang_rear_wheel 6s 1s linear;			
	-webkit-animation-fill-mode:forwards;	
	-webkit-animation-iteration-count: 1;
}
.camaro_front_wheel{
	animation: mustang_rear_wheel 4s 3s linear;			
	-moz-animation-fill-mode:forwards;	
	animation-iteration-count: 1;
	-webkit-animation: mustang_rear_wheel 4s 3s linear;			
	-webkit-animation-fill-mode:forwards;	
	-webkit-animation-iteration-count: 1;
}
.mustang_rear_wheel{
	animation: mustang_rear_wheel 6s 1s linear;			
	-moz-animation-fill-mode:forwards;	
	animation-iteration-count: 1;
	-webkit-animation: mustang_rear_wheel 6s 1s linear;			
	-webkit-animation-fill-mode:forwards;	
	-webkit-animation-iteration-count: 1;
}
.mustang_front_wheel{
	animation: mustang_rear_wheel 4s 3s linear;			
	-moz-animation-fill-mode:forwards;	
	animation-iteration-count: 1;
	-webkit-animation: mustang_rear_wheel 4s 3s linear;			
	-webkit-animation-fill-mode:forwards;	
	-webkit-animation-iteration-count: 1;
}
.mustang_burnout{
	animation: mustang_burnout 2s 1s linear;
	-webkit-animation: mustang_burnout 2s 1s linear;
}
.camaro_burnout{
	animation: camaro_burnout 2s 1s linear;
	-webkit-animation: mustang_burnout 2s 1s linear;
}
.mustang_smoke{
	animation: mustang_smoke 2s 1s linear;
	-webkit-animation: mustang_burnout 2s 1s linear;
}
.camaro_smoke{
	animation: camaro_smoke 2s 1s linear;
	-webkit-animation: mustang_burnout 2s 1s linear;
}
/*.mustang{
	animation: mustang_up 2.5s 3s linear;
	transform-origin: 0rem 0rem;
}
.camaro{
	animation: camaro_up 2s 3s linear;
	transform-origin: 0rem 0rem;
}*/
/*.mustang_track{
	animation: mustang_track 1s 1s linear;
}
.camaro_track{
	animation: camaro_track 1s 1s linear;
}*/
/*================================ Keyframes =====================================*/
@keyframes road{
	0%{background-position:0 0; }
	100%{background-position:100% 0;}
}
@keyframes mustang{
	0%{-moz-transform:translateX(0rem);}
	10%{-moz-transform:translateX(5rem);}
	20%{-moz-transform:translateX(10rem);}
	30%{-moz-transform:translateX(15rem);}
	40%{-moz-transform:translateX(25rem);}
	50%{-moz-transform:translateX(35rem);}
	60%{-moz-transform:translateX(50rem);}
	70%{-moz-transform:translateX(70rem);}
	80%{-moz-transform:translateX(90rem);}
	90%{-moz-transform:translateX(110rem);}
	100%{-moz-transform:translateX(130rem);}
}
@keyframes camaro{
	0%{-moz-transform:translateX(0rem);}
	10%{-moz-transform:translateX(10rem);}
	20%{-moz-transform:translateX(20rem);}
	30%{-moz-transform:translateX(25rem);}
	40%{-moz-transform:translateX(30rem);}
	50%{-moz-transform:translateX(35rem);}
	60%{-moz-transform:translateX(40rem);}
	70%{-moz-transform:translateX(50rem);}
	80%{-moz-transform:translateX(60rem);}
	90%{-moz-transform:translateX(80rem);}
	100%{-moz-transform:translateX(100rem);}
}
@keyframes mustang_burnout{
	0%{opacity:0;}
	25%{opacity:0.25;}
	50%{opacity:0.5;}
	75%{opacity:0.75;}
	100%{opacity:1;}
}
@keyframes mustang_smoke{
	0%{opacity:0.1;}
	20%{opacity:0.25;}
	40%{opacity:0.5,-moz-transform:translate(-10% -15%);}
	75%{opacity:0.75,-moz-transform: translate(-20% -25%);}
	100%{opacity:1;}
}
@keyframes camaro_burnout{
	0%{opacity:0;}
	25%{opacity:0.25;}
	50%{opacity:0.5;}
	75%{opacity:0.75;}
	100%{opacity:1;}
}
@keyframes camaro_smoke{
	0%{opacity:0.1;}
	25%{opacity:0.25;}
	50%{opacity:0.5;}
	75%{opacity:0.75;}
	100%{opacity:1;}
}
@keyframes mustang_rear_wheel{
	0%{transform:rotate(0turn);}
	100%{transform:rotate(2000turn);}
}
@keyframes mustang_track{
	0%{background-position:0 0; }
	100%{background-position:100% 0;}
}
@keyframes camaro_track{
	0%{background-position:0 0; }
	100%{background-position:100% 0;}
}
@keyframes camaro_rear_wheel{
	0%{transform:rotate(0deg);}
	50%{transform:rotate(500turn);}
	100%{transform:rotate(1000turn);}
}
@keyframes mustang_front_wheel{
	0%{transform:rotate(0deg);}
	100%{transform:rotate(2000turn);}
}
@keyframes camaro_front_wheel{
	0%{transform:rotate(0deg);}
	50%{transform:rotate(500turn);}
	100%{transform:rotate(1000turn);}
}
/*=========== Chrome and Safari =================*/
@-webkit-keyframes road{
	0%{background-position:0 0; }
	100%{background-position:100% 0;}
}
@-webkit-keyframes mustang{
	0%{-webkit-transform:translateX(0rem);}
	10%{-webkit-transform:translateX(5rem);}
	20%{-webkit-transform:translateX(10rem);}
	30%{-webkit-transform:translateX(15rem);}
	40%{-webkit-transform:translateX(25rem);}
	50%{-webkit-transform:translateX(35rem);}
	60%{-webkit-transform:translateX(50rem);}
	70%{-webkit-transform:translateX(70rem);}
	80%{-webkit-transform:translateX(90rem);}
	90%{-webkit-transform:translateX(110rem);}
	100%{-webkit-transform:translateX(130rem);}
}
@-webkit-keyframes camaro{
	0%{-webkit-transform:translateX(0rem);}
	10%{-webkit-transform:translateX(10rem);}
	20%{-webkit-transform:translateX(20rem);}
	30%{-webkit-transform:translateX(25rem);}
	40%{-webkit-transform:translateX(30rem);}
	50%{-webkit-transform:translateX(35rem);}
	60%{-webkit-transform:translateX(40rem);}
	70%{-webkit-transform:translateX(50rem);}
	80%{-webkit-transform:translateX(60rem);}
	90%{-webkit-transform:translateX(80rem);}
	100%{-webkit-transform:translateX(100rem);}
}
@-webkit-keyframes mustang_burnout{
	0%{opacity:0;}
	25%{opacity:0.25;}
	50%{opacity:0.5;}
	75%{opacity:0.75;}
	100%{opacity:1;}
}
@-webkit-keyframes mustang_smoke{
	0%{opacity:0.1;}
	20%{opacity:0.25;}
	40%{opacity:0.5;}
	75%{opacity:0.75;}
	100%{opacity:1;}
}
@-webkit-keyframes camaro_burnout{
	0%{opacity:0;}
	25%{opacity:0.25;}
	50%{opacity:0.5;}
	75%{opacity:0.75;}
	100%{opacity:1;}
}
@-webkit-keyframes camaro_smoke{
	0%{opacity:0.1;}
	25%{opacity:0.25;}
	50%{opacity:0.5;}
	75%{opacity:0.75;}
	100%{opacity:1;}
}
@-webkit-keyframes mustang_rear_wheel{
	0%{-webkit-transform:rotate(0turn);}
	100%{-webkit-transform:rotate(2000turn);}
}
@-webkit-keyframes mustang_track{
	0%{background-position:0 0; }
	100%{background-position:100% 0;}
}
@-webkit-keyframes camaro_track{
	0%{background-position:0 0; }
	100%{background-position:100% 0;}
}
@-webkit-keyframes camaro_rear_wheel{
	0%{-webkit-transform:rotate(0deg);}
	50%{-webkit-transform:rotate(500turn);}
	100%{-webkit-transform:rotate(1000turn);}
}
@-webkit-keyframes mustang_front_wheel{
	0%{-webkit-transform:rotate(0deg);}
	100%{-webkit-transform:rotate(2000turn);}
}
@-webkit-keyframes camaro_front_wheel{
	0%{-webkit-transform:rotate(0deg);}
	50%{-webkit-transform:rotate(500turn);}
	100%{-webkit-transform:rotate(1000turn);}
}
            
          
!

JS

            
              
            
          
!
999px

Console