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.

            
              // Inspired By This Dribble post https://dribbble.com/shots/2321025-Music-Player-Freebie <3 <3 <3
.player
	img.cover(src="http://images.genius.com/2216a21a5494b153cb4c24005370d031.700x700x1.jpg", alt="Cover")
	.icons
		.fa.fa-heart
		.fa.fa-random
	.info
		p.title Leave Your Lover
		p.artist Artist - Echos
		p.album Album - Echos
	.line
	.playtime
	.played
		img.forward(src='data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lv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zLjMzMy0zLjcxNSw1LjQyNFYxOC42NzkgICBjMC00Ljk1Mi0xLjgwOS05LjIzNC01LjQyNC0xMi44NWMtMy42MTctMy42MTctNy45LTUuNDI2LTEyLjg0Ny01LjQyNkg5MS43NzVjLTQuOTUyLDAtOS4yMzMsMS44MDktMTIuODUsNS40MjYgICBDNzUuMzA4LDkuNDQ4LDczLjUsMTMuNzMsNzMuNSwxOC42Nzl2NDAxLjk4NmMwLDQuOTQ4LDEuODA3LDkuMjM2LDUuNDI0LDEyLjg0N2MzLjYyMSwzLjYyLDcuOTAyLDUuNDI4LDEyLjg1LDUuNDI4aDM2LjU0MyAgIGM0Ljk0NywwLDkuMjI5LTEuODA4LDEyLjg0Ny01LjQyOGMzLjYxNS0zLjYxLDUuNDI0LTcuODk4LDUuNDI0LTEyLjg0N1YyMjcuMDk3YzAuNzYzLDEuOTAzLDIsMy43MTcsMy43MTUsNS40MjVsMjAyLjcwNSwyMDIuNzEyICAgYzMuNjIxLDMuNjE3LDYuNjY3LDQuODU5LDkuMTM4LDMuNzJjMi40NzgtMS4xNDQsMy43MTYtNC4xODksMy43MTYtOS4xMzhWOS41NDdDMzY1Ljg2Miw0LjU5OSwzNjQuNjI0LDEuNTUzLDM2Mi4xNDYsMC40MTJ6IiBmaWxsPSIjRkZGRkZGIi8+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==')
	.fa.fa-volume-up.fa-2x
	p.songtime 4:20
	p.timeleft 1:44
	svg#Capa_1(xmlns='http://www.w3.org/2000/svg', xmlns:xlink='http://www.w3.org/1999/xlink', version='1.1', x='0px', y='0px', viewbox='0 0 512 512', style='enable-background:new 0 0 512 512;', xml:space='preserve', width='512px', height='512px')
		path(d='M256,0C114.617,0,0,114.615,0,256s114.617,256,256,256s256-114.615,256-256S397.383,0,256,0z M344.48,269.57l-128,80  c-2.59,1.617-5.535,2.43-8.48,2.43c-2.668,0-5.34-0.664-7.758-2.008C195.156,347.172,192,341.82,192,336V176  c0-5.82,3.156-11.172,8.242-13.992c5.086-2.836,11.305-2.664,16.238,0.422l128,80c4.676,2.93,7.52,8.055,7.52,13.57  S349.156,266.641,344.48,269.57z', fill='#72e6cf')
		g
		g
		g
		g
		g
		g
		g
		g
		g
		g
		g
		g
		g
		g
		g


            
          
!
            
              body
	height 700px
	width 100vw
	display flex
	align-items center
	justify-content center
.player
	width 800px
	height 529px
	background url(https://s30.postimg.org/e2805n62p/background.jpg) center center no-repeat
	background-size cover
	box-shadow 0px 24px 54px -12px rgba(94,97,120,1)
	position absolute
	left 50%
	transform translateX(-400px)
	top 20%
	.cover
		width 230px
		position absolute
		left 50%
		transform translateX(-115px)
		top -40px
		box-shadow 5px 20px 50px 0px rgba(#111, 0.4)
	.icons
		position absolute
		right 40px
		top 40px
		.fa
			color #71748b
			margin-left 15px
			font-size 20px
	.info
		position absolute
		top 240px
		left 20%
		color #fff
		font-family Open Sans
		letter-spacing 1px
		.title
			font-size 2em
			margin 0
		.artist
			color #9396af
	.line
		height 1px
		width 100%
		background-color #6b6d83
		position absolute
		top 400px
	.playtime
		background-color #6b6d83
		height 5px
		width 100%
		position absolute
		bottom 0px
	.played
		background-color #72e6cf
		height 5px
		width 300px
		position absolute
		bottom 0px
	svg
		width 85px
		background-color #fff
		border-radius 50%
		height 85px
		position absolute
		left 50%
		transform translateX(-42.5px)
		bottom 25px
		box-shadow 0px 0px 40px 0px rgba(0,0,0,0.4)
	.forward
		width 30px
		position absolute
		bottom 55px
		right -70%
	.backward
		width 30px
		position absolute
		bottom 55px
		left 36%
	.fa.fa-volume-up
		color #fff
		position absolute
		bottom 53px
		right 28%
	p.songtime
		color #fff
		position absolute
		right 20px
		bottom 45px
	p.timeleft
		color #fff
		position absolute
		left 20px
		bottom 45px
	.fa.fa-heart.liked
		color #ff749f
            
          
!
            
              $(()=>{
	$(".fa.fa-heart").on('click', ()=>{
		$('.fa.fa-heart').toggleClass('liked')
	})
})
            
          
!
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