cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-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']
	ul.gap
		- for i in (1..5)
			li.box
	p.social.fade by @rileyjshaw

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

html, body
	height: 100%
	width: 100%

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

a
	text-decoration: none

ul
	margin: 0
	padding: 0
	list-style: none

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

.box
	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
		&:nth-child(#{$n})
			animation: fall $SPEED $n/$NUM_BOXES*$SPEED - $SPEED ease-in infinite

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

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

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

@keyframes fadeIn
	to
		opacity: 1

            
          
!
999px
Close

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.

Go PRO

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

Console