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.

            
              <!-- Insipred by @mxmc on dribbble https://dribbble.com/shots/2825177-12 -->

.flex-container
	.waves
		- for (var i=0; i<12; i++)
			div(class='wave-'+[i])
				.wave-face
            
          
!
            
              /* Insipred by @mxmc on dribbble

https://dribbble.com/shots/2825177-12 */



// -------- Basic Styles --------//	
html
body
	width 100%
	height 100%

body
	background-image linear-gradient(to bottom, #5289de, #abbcff)

.flex-container
	width 100%
	height 100%
	display flex
	justify-content center
	align-items center

// -------- Styles --------//		
$wave-size = 20px

.waves
	margin-left 240px
	transform-style preserve-3d
	transform rotate3d(-0.5,1,0,30deg)
	
[class*="wave-"]
	position relative
	float right
	width $wave-size
	height $wave-size
	margin 0 10px
	transform-style preserve-3d
	
for i in (0..11)
	.wave-{i}
		display block
		animation waving 2.4s ease-in-out infinite
		animation-delay 0.15s*i
	
.wave-face
	position absolute
	width $wave-size
	height $wave-size
	background-image linear-gradient(-240deg, #fedfe5, #d1f9ff)
	transform-style preserve-3d
	transform translateZ(0px)
	&:before
	&:after
		position absolute
		content ''
		display block
		transform-origin 50% 50% 50%
	&:before
		width 600px
		height $wave-size
		background-image linear-gradient(to left, #d1f9ff, #779ade, #c6eefb, #c2e3ea, #fedfe5)
		transform translate3d(-300px,0,-300px) rotateY(90deg)
	&:after
		width $wave-size
		height 600px
		background-color yellow
		background-image linear-gradient(to bottom, #fff, #d1f9ff, #779ade, #c2e3ea)
		transform translate3d(0,-300px,-300px) rotateX(90deg);

@keyframes waving {
 0%, 100% {
	 transform translateY(0)
 }
 50% {
	 transform translateY(100px)
 }
}
            
          
!
999px
Loading ..................

Console