cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


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.

              a.container[href='https://twitter.com/rileyjshaw' target='_blank']
		- for i in (1..5)
	p.social.fade by @rileyjshaw

              $NUM_BOXES: 5
$SPEED: 2.4s
$COLOR: rgb(225, 203, 57)

html, body
	height: 100%
	width: 100%

	display: flex
	justify-content: center
	align-items: center
	margin: 0
	font-family: 'Roboto', sans-serif
	text-align: right
	background: #000

	text-decoration: none

	margin: 0
	padding: 0
	list-style: none

	position: relative
	display: flex
	justify-content: space-around
	width: 300px
	height: 60px
	padding: 0 12px
	overflow: hidden
	background: $COLOR

	width: 48px
	height: 48px
	border-radius: 4px
	background: #181818
	box-shadow: 0 0 24px rgba(0, 0, 0, 0.6)

	@for $n from 1 through $NUM_BOXES
			animation: fall $SPEED $n/$NUM_BOXES*$SPEED - $SPEED ease-in infinite

	display: inline-block
	padding-bottom: 1px
	border-bottom: 1px solid desaturate($COLOR, 20%)
	font-size: 10px
	text-transform: uppercase
	color: $COLOR

	opacity: 0
	animation: fadeIn 0.4s 2s linear forwards

@keyframes fall
		transform: translate3d(0, -150px, 0) rotate(0deg)
		transform: translate3d(0, 150px, 0) rotate(360deg)

@keyframes fadeIn
		opacity: 1


Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


Loading ..................