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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                		<section class="sectionMotion">
			<div class="sectionMotion__rotate">					
<div class="media">
								<div class="video-container">
									<div class="video-header">
										<p>Material Motion</p>
									</div>	
									<div class="frame frame-hover frame-general">
										<video preload="auto" tabindex="0">
											<source src="https://storage.googleapis.com/material-design/publish/material_v_12/assets/0B14F_FSUCc01VDAtSVF3X0F5VTg/materialmotionhero-spec-0505.webm" type="video/webm">
												<source src="https://storage.googleapis.com/material-design/publish/material_v_12/assets/0B14F_FSUCc01SWc0N29QR3pZT2s/materialmotionhero-spec-0505.mp4" type="video/mp4">
												</video>
											</div>
  </div>					
  </div>
  </section>
              
            
!

CSS

              
                $red: #FF594E
$yellow: #FFD54A
$emerald: #009587
$black: #1A1A1A
$grey: #EEEEEE

.sectionMotion
	overflow: hidden 
	margin-bottom: 500px
	width: 600px
	.sectionMotion__rotate
		position: relative
		background-color: $red
		transform: skewY(-7deg)
		top: 115px
		padding-bottom: 125px
.media
	width: 100%
	height: 100%
	transform: skewY(7deg)
	margin-top: 180px
	position: relative
	cursor: pointer
	.video-container
		margin-top: 60px
		.video-header
			color: #fff
			font-family: "RobotoBold"
			font-size: 25px
			line-height: 10px
	.frame
		box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)
		overflow: hidden
		border-radius: 10px
		border: 3px solid $yellow
		position: relative
		height: 315px
		&::after
			content: ''
			height: 100%
			background: $red url(../img/icons/play.svg) no-repeat center center
			background-size: 130px
			box-shadow: inset 0 0 230px rgba(0,0,0,.5)
			position: absolute
			top: 0
			left: 0
			width: 100%
	.frame-hover
		&::after
			content: ''
			height: 100%
			background: rgba(255, 89, 78,.5) url(../img/icons/pause.svg) no-repeat center center
			background-size: 130px
			box-shadow: inset 0 0 230px rgba(0,0,0,.5)
			position: absolute
			top: 0
			left: 0
			width: 100%
	video
		position: relative
		top: 0
		width: 100%
		height: 100%
              
            
!

JS

              
                
              
            
!
999px

Console