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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console