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 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

              
                a(href="#").container
	.image
	p.title Asbestos Overview
	.hover
		i.fa.fa-arrow-circle-right
              
            
!

CSS

              
                $color: #2D2D37
body
	background: #E1EBF5
	background-size: cover
	background-repeat: no-repeat
	background-position: center center
	height: 100%
	width: 100%
	background-attachment: fixed
.container
	overflow: hidden
	height: 250px
	width: 250px
	box-shadow: 0 22px 44px 0 rgba(black, 0.3)
	border-radius: 3px
	position: absolute
	top: 50%
	left: 50%
	transform: translateY(-50%) translateX(-50%)
.image
	width: 100%
	height: 100%
	position: absolute
	background: url(http://img15.hostingpics.net/pics/823065fox.jpg)
	background-position: center center
	background-size: 250px
	transition: background-size 0.2s cubic-bezier(0.445, 0.05, 0.55, 0.95)
.title
	position: absolute
	z-index: 99
	bottom: 20px
	left: 20px
	color: #fff
	text-transform: uppercase
	font-family: Open Sans, sans-serif
	font-weight: lighter
	font-size: 14px
	letter-spacing: 0.5px
	text-shadow: 0 0 10px #000

.hover
	position: absolute
	background: rgba($color, 0.5)
	width: 500px
	height: 500px
	top: 220px
	left: 40px
	transform: rotate(45deg)
	transition: all 0.2s cubic-bezier(0.445, 0.05, 0.55, 0.95)
	i
		color: #fff
		font-size: 40px
		text-decoration: none
		position: absolute
		top: 100px
		left: 10px
		transform: rotate(-45deg)
		transition: all 0.2s cubic-bezier(0.445, 0.05, 0.55, 0.95)

.container:hover
	& .image
		background-size: 290px
		-webkit-backface-visibility: hidden
		-webkit-transform: translateZ(0) scale(1.0, 1.0)
	& .hover
		top: -135px
		left: -80px
		i
			font-size: 90px
			top: 50%
			left: 50%
			transform: rotate(-45deg) translateY(-50%) translateX(-50%)
              
            
!

JS

              
                
              
            
!
999px

Console