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 Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

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.

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