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

Auto Save

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 class='scene'>
	<div class='assembly'>
		<div class='plane'></div>
		<div class='plane'></div>
	</div>
</div>
<p>Muffin cake dessert cake pie chocolate wafer. Wafer brownie danish halvah brownie danish powder. Dessert marzipan sweet roll chupa chups gingerbread brownie pastry liquorice. Liquorice caramels powder. Fruitcake oat cake biscuit dragée cotton candy. Cake muffin cupcake icing sweet roll donut sugar plum apple pie. Donut lollipop pudding. Wafer sesame snaps  cake donut pudding. Jelly candy canes sugar plum sugar plum chocolate bar candy canes cupcake cookie lollipop. Chocolate macaroon apple pie. Cotton candy tart tootsie roll jelly beans croissant brownie. Toffee cake pie  cake sugar plum pie. Gingerbread cake  cake gummi bears gingerbread cotton candy ice cream chocolate cake cotton candy.</p>
<p>Biscuit chocolate cookie muffin sweet roll pudding. Croissant macaroon bonbon cake cupcake dessert. Candy marzipan soufflé gingerbread cotton candy lemon drops tart. Caramels sweet cupcake bonbon cake chupa chups chocolate cake chocolate cake chocolate bar. Jujubes tootsie roll brownie oat cake jelly lollipop muffin sweet. Chocolate bar chocolate cake jelly. Bonbon cupcake gummies dragée halvah powder chocolate cake. Sweet brownie cookie. Cake halvah lemon drops bonbon marshmallow. Candy fruitcake gingerbread ice cream marshmallow dragée topping ice cream. Brownie liquorice tiramisu marshmallow chocolate bar croissant gummies. Donut pastry cake apple pie cake. Sweet roll pudding sweet roll sugar plum marshmallow marzipan chocolate.</p>
<p>Toffee donut gummi bears chocolate cake toffee. Donut pudding topping. Brownie macaroon tart chocolate bar dessert tootsie roll cake gummi bears toffee. Wafer cake croissant lollipop pie toffee. Chocolate bar soufflé gummi bears cake halvah marshmallow icing. Tart halvah sugar plum croissant gingerbread sweet roll tootsie roll macaroon. Marzipan cake cake wafer brownie chupa chups muffin. Sweet chocolate sugar plum biscuit chupa chups gummies gummies halvah soufflé. Dessert gingerbread croissant chocolate cake icing tiramisu candy. Tiramisu jujubes ice cream biscuit jelly-o dragée. Muffin gingerbread brownie tootsie roll chocolate cake tart sesame snaps croissant ice cream. Chocolate cake halvah jelly beans chocolate cake apple pie lollipop bear claw ice cream. Ice cream liquorice topping lemon drops tart soufflé. Bonbon lemon drops pastry lemon drops jelly beans.</p>
<p>Bonbon dragée lollipop halvah macaroon croissant. Chocolate cake cake sweet dessert. Jelly-o jujubes sweet cake fruitcake dessert. Tiramisu chocolate cake jelly-o brownie cake gummi bears candy canes dragée. Candy donut dragée jelly-o. Macaroon caramels chocolate cake muffin. Halvah chocolate halvah sweet. Topping pie tootsie roll jelly-o candy canes chocolate cake cake oat cake sugar plum. Oat cake lemon drops toffee sugar plum sweet marshmallow. Tootsie roll halvah fruitcake chocolate bar gummi bears. Brownie biscuit cotton candy biscuit cake pudding liquorice gummi bears candy. Brownie cake cake sugar plum danish. Wafer dragée bonbon. Tootsie roll marzipan cupcake halvah pastry cupcake bonbon bonbon pudding.</p>
<p>Candy tiramisu marzipan cotton candy cake cake. Jelly  cake cotton candy marzipan fruitcake sweet roll. Cookie topping cake gummies gummies soufflé gummies. Powder cotton candy wafer. Candy canes tiramisu candy  cake pudding liquorice. Chocolate cake danish dessert sweet chupa chups candy gingerbread. Pudding cotton candy cotton candy. Tootsie roll marzipan muffin chocolate bar dessert dragée lemon drops marshmallow. Muffin tiramisu chupa chups cake marzipan bear claw chupa chups. Apple pie oat cake gingerbread marzipan. Pastry ice cream lemon drops cake tiramisu jujubes wafer lemon drops. Halvah  cake sesame snaps soufflé cookie gummies. Sweet roll gingerbread caramels powder sugar plum gingerbread chocolate bar tiramisu cake. Macaroon apple pie cotton candy gingerbread muffin fruitcake marshmallow pie.</p>
              
            
!

CSS

              
                $dim: 10em;;

.scene {
	float: left;
	overflow: hidden;
	width: 30vw; height: 30vh;
	perspective: 40em;
}

.assembly {
	position: absolute;
	top: 50%; left: 50%;
	transform-style: preserve-3d;
}

.plane {
	position: absolute;
	margin: -.5*$dim;
	width: $dim; height: $dim;
	background: #ee8c25;
	
	&:last-child {
		transform: translateY(50%)
			rotateY(60deg) rotate(45deg);
		background: #d14730;
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console