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

              
                .container
	a.button.is-play(href="#")
		.button-outer-circle.has-scale-animation
		.button-outer-circle.has-scale-animation.has-delay-short
		.button-icon.is-play
			svg(height="100%" width="100%" fill="#f857a6")
				polygon.triangle(points="5,0 30,15 5,30" viewBox="0 0 30 15")
				path.path(d="M5,0 L30,15 L5,30z" fill="none" stroke="#f857a6" stroke-width="1")
              
            
!

CSS

              
                colors = {
	main : #f857a6,
	second : #ff5858
}

body
	background: linear-gradient(to right, colors.main, colors.second)
	
@keyframes fadeIn
	from
		opacity: 0
	to
		opacity: 1
	
@keyframes triangleStroke
	from 
		stroke-dashoffset: 90
	to
		stroke-dashoffset: 0
		
@keyframes smallScale
	from
		transform: scale(1)
		opacity: 1
	to
		transform: scale(1.5)
		opacity: 0

.container
	display: flex
	justify-content: center
	align-items: center
	height: 100vh
	width: 100%
	
.button
	display: inline-block
	position: relative
	&.is-play
		background-color: #FFF
		border-radius: 50%
		width: 100px
		height: @width
		.button-outer-circle
			background: rgba(#fff, .2)
			border-radius: 50%
			position: absolute
			top: 0
			left: 0
			right: 0
			bottom: 0
			height: 100%
			width: 100%
		.button-icon
			position: absolute
			top: 50%
			left: 50%
			width: 30px
			height: @width
			transform: translate(-50%, -50%)
			.triangle
				animation: fadeIn 7s ease
			.path
				stroke-dasharray: 90
				stroke-dashoffset: 0
				animation: triangleStroke 3s
				animation-timing-function: ease
				
.has-scale-animation
	animation: smallScale 3s infinite

.has-delay-short
	animation-delay: .5s
              
            
!

JS

              
                
              
            
!
999px

Console