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

              
                .home
	p Home Page

.menu-trigger
	.bars
		span
		span
		span
	p MENU
	
	.menu
		ul
			li 
				p New Arrivals
			li
				p Woman
			li
				p Man
			li
				p Releases
			li 
				p Stores

a.dribbble-link(href="https://dribbble.com/shots/5290735-ARKK-Menu-and-Category-page" target="_blank")
	i.fab.fa-dribbble
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Abel')

*
	box-sizing: border-box

body
	width: 100vw
	height: 100vh
	font-family: Abel, Helvetica, sans-serif

.home
	background: #222
	width: 100%
	height: 100%
	display: flex
	align-items: center
	justify-content: center

	> p
		color: #fff
		font-size: 2rem
		text-transform: uppercase
	
.menu-trigger
	position: fixed
	top: 0
	left: 0
	width: 50px
	height: 100%
	cursor: pointer
	display: flex
	align-items: center
	justify-content: center
	z-index: 10
	background: #222

	&:hover
		border-right: none

		> .bars > span
			&:first-of-type,
			&:last-of-type
				transform: translateY(-5px)
				opacity: 0
	
			&:nth-of-type(2)
				transform: scaleY(1.2)
				transform-origin: center bottom
	
		> .menu
			transform: translateX(50px)
	
			> ul > li > p
				transform: translateY(0)
	
		> p
			transform: translateY(40px) rotate(-90deg)
			opacity: 1

	> p
		color: #aaa
		transform: translateY(60px) rotate(-90deg)
		margin-top: 30px
		font-weight: bold
		letter-spacing: .12rem
		transition: all .4s ease
		position: absolute
		opacity: 0
		font-size: .9rem
		z-index: 10

.bars
	display: flex
	width: 50%
	align-items: center
	justify-content: space-between
	z-index: 10

	> span
		width: 4px
		height: 40px
		background: #666
		transition: all .4s ease
		
.menu
	position: absolute
	top: 0
	left: 0
	background: #222
	height: 100%
	border-right: 1px solid #444
	transform: translateX(calc(-100% + 51px))
	transition: all .8s cubic-bezier(.785,.135,.15,.86)
	padding: 50px 100px 50px 50px
	will-change: transform

	> ul
		&:hover
			> li:not(:hover)
				color: rgba(#f9f9ed, .5)
		
		> li
			color: #f9f9ed
			font-size: 2rem
			cursor: pointer
			padding: 10px 0
			width: 160px
			overflow: hidden
		
			&:first-of-type
				padding-top: 0
		
			&:last-of-type
				padding-bottom: 0
	
			@for $i from 1 through 5		
				&:nth-of-type(#{$i}) > p
					transition: transform .6s cubic-bezier(.785,.135,.15,.86) .1s * $i, color .2s ease
			
			> p
				transform: translateY(calc(100% + 10px))

.dribbble-link
	position: fixed
	bottom: 20px
	right: 20px
	background: #E04982
	width: 50px
	height: 50px
	border-radius: 50%
	display: flex
	align-items: center
	justify-content: center
	text-decoration: none

	&:before
		content: 'View original post on Dribbble'
		position: absolute
		top: -85%
		left: -150px
		width: 180px
		transition: all .4s ease
		background: #fff
		color: #222
		border-radius: 5px
		padding: 10px
		transform: translateY(10px)
		opacity: 0
		z-index: -1
		pointer-events: none

	&:hover
		&:before
			transform: translateY(0)
			opacity: 1
			pointer-events: auto
			z-index: 1

	> i
		color: #fff
		font-size: 1.8rem
	
              
            
!

JS

              
                
              
            
!
999px

Console