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

              
                .wrapper.work
	.work-details
		.work-details-thumb
			img(src="http://unsplash.it/500/250?image=964", alt="").img-down
			img(src="http://unsplash.it/150/200?image=928", alt="").img-up
		.work-details-caption
			p.title Hover me
			p.caption Dolor sit amet, consectetur adipisicing elit. Placeat molestiae ex facilis deleniti.
	.work-title
		p.title Hover me
	.work-link
		a(href="#") See more
              
            
!

CSS

              
                *, *:after
	transition: all 650ms cubic-bezier(0.4, 0, 0.2, 1)

.wrapper
	position: absolute
	top: 50%
	left: 50%
	transform: translateY(-50%) translateX(-50%)
.work
	width: 500px
	
	font-family: 'Open Sans', sans-serif
	text-align: center
	&-details
		position: relative
		overflow: hidden
		padding-bottom: 20px
		padding: 10px
		&-thumb
			img
				width: 100%
				box-shadow: 0 5px 10px rgba(#000, 0.2)
			.img-down
				transform: translateX(20px)
			.img-up
				width: inherit
				position: absolute
				top: 0
				left: 10px
		&-caption
			position: absolute
			top: 130%
			left: 50%
			transform: translateY(-50%) translateX(-50%)
			color: #fff
			background: #000
			padding: 35px 50px
			width: 250px
			transition-delay: 100ms
			p.caption
				font-weight: lighter
				font-size: 14px
				line-height: 20px
	&-title
		overflow: hidden
		p.title
			display: block
	&-link
		overflow: hidden
		height: 30px
		a
			display: inline-block
			text-decoration: none
			text-transform: uppercase
			letter-spacing: 2px
			color: #000
			position: relative
			transform: translateY(-50px)
			transition-delay: 100ms

			&:after
				content: ''
				width: 100%
				height: 1px
				position: absolute
				bottom: -3px
				left: 0
				background: #000
				opacity: 0
				transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1)

			&:hover
				&:after
					bottom: 50%
	&:hover
		.work-details
			&-thumb
				img
					//transform: translateY(2px)
					box-shadow: 0 0 0 rgba(#000, 0.2)
			&-caption
				top: 50%
				left: 50%
				transform: translateY(-50%) translateX(-50%)
		.work-title
			p.title
				transform: translateY(30px)
		.work-link
			a
				transform: translateY(0)
				&:after
					opacity: 1
.title
	font:
		family: 'Montserrat', sans-serif
		weight: 800
		size: 18px
	text-transform: uppercase
	letter-spacing: 2px
	margin-bottom: 6px
              
            
!

JS

              
                
              
            
!
999px

Console