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

              
                
.card: h1 Hover

p 
	| Crafted by Kshitij Purwar 
	br
	a(href="http://codepen.io/melnik909/pen/mmXQbr",target="_blank") Inspiration
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Poppins:300,400')
$color: #FF9800
$transition: all 2s cubic-bezier(0,1.04,1,.01)

html,body
	height: 100%
	text-align: center
*
	font-family: 'Poppins', sans-serif
body
	height: 100%
	display: flex
	justify-content: center
	background: lighten( $color, 20% )		
	background: -webkit-linear-gradient(-45deg, #FF9800 20%, #ffa624 0%, #FF9800 80%, #ffa218 -51%)
	align-items: center
	flex-direction: column

.card
	width: 300px
	height: 300px
	background: $color
	background: linear-gradient(-45deg, lighten($color, 5%) 0%, lighten($color, 20%) 100%)
	position: relative	
	overflow: hidden
	color: white
	box-sizing: border-box
	text-transform: uppercase
	cursor: pointer
	transition: all 5s ease-in-out
	
	h1
		font-size: 3rem
		position: absolute
		top: 50%
		right: 50%
		z-index: 9
		transform: translate( 50% , -50% )  
		margin: 0
		color: cornsilk
		transition: all .2s ease-in-out
		letter-spacing: 0.2rem
	&:hover h1
		color: #fff
	&:before, &:after
		content: ""
		background: lighten($color,9%)			
		width: calc( 300px * 2)
		height: calc( 300px * 2 )
		border-radius: 50%
		position: absolute
		top: 0px
		left: 0px
		transform: translate( -50% , -50% ) scale(0)
		transition: all 0.5s cubic-bezier(0,1.04,1,.01)

	&:after
		bottom: 0px
		left: 0px
		background: lighten($color,4%)			
		transform: translate(0,0) scale(0)
	&:hover:before
		transition: all 1s ease-in-out
		transform: translate( -50% , -50% ) scale(3)
	&:hover:after
		transition: all 1s ease-in-out
		transform: translate( -50% , -50% ) scale(2)
		
p
	color: #fff
	line-height: 1.6rem
	font-weight: 300
	letter-spacing: 1.2px
a
	text-decoration: none
	color: yellow
              
            
!

JS

              
                
              
            
!
999px

Console