Pen Settings

HTML

CSS

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

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                


 <svg id="wave02" xmlns="http://www.w3.org/2000/svg"  viewBox="0 0 800 100" >
    <path class="one wave02"  fill="blue" d="M 0 100 L 0 40 Q 60 20 120 40 Q 175 60 220 40 Q 275 25 320 40 Q 355 60 400 40 Q 455 25 500 40 Q 540 55 580 40 Q 620 25 660 40 Q 700 55 740 40 Q 775 25 800 40 L 800 100 Z " />
    <path class="two wave02 hidden"  fill="blue" d="M 0 100 L 0 40 Q 45 55 100 45 Q 145 25 190 40 Q 230 65 270 45 Q 325 20 340 40 Q 405 65 450 40 Q 500 25 540 40 Q 590 55 625 35 Q 665 20 690 40 Q 755 60 800 40 L 800 100  Z " />
<path class="03 wave02 hidden" stroke="blue" fill="blue" d="M 0 100 L 0 40 Q 65 50 120 40 Q 170 30 220 40 Q 275 50 320 40 Q 360 30 400 40 Q 445 50 500 40 Q 535 30 580 40 Q 615 50 660 40 Q 700 30 740 40 Q 770 55 800 40 L 800 100 Z " />

</svg>

 <svg id="wave03" xmlns="http://www.w3.org/2000/svg"  viewBox="0 0 800 100" >
   <path fill="#0808e299" d="M 500 170 C 530 70 640 100 686 60 L 686 170 "/>
   </svg>
   

 <svg id="wave" xmlns="http://www.w3.org/2000/svg"  viewBox="0 0 800 100" >
    <path class="one"  fill="#0000ff80" d="M 0 100 L 0 40 Q 60 20 120 40 Q 175 60 220 40 Q 275 25 320 40 Q 355 60 400 40 Q 455 25 500 40 Q 540 55 580 40 Q 620 25 660 40 Q 700 55 740 40 Q 775 25 800 40 L 800 100 Z " />
    <path class="two hidden"  fill="#0000ff80" d="M 0 100 L 0 40 Q 45 55 100 45 Q 145 25 190 40 Q 230 65 270 45 Q 325 20 340 40 Q 405 65 450 40 Q 500 25 540 40 Q 590 55 625 35 Q 665 20 690 40 Q 755 60 800 40 L 800 100  Z " />
<path class="03 hidden" stroke="#0000ffd4" fill="#0000ff80" d="M 0 100 L 0 40 Q 65 50 120 40 Q 170 30 220 40 Q 275 50 320 40 Q 360 30 400 40 Q 445 50 500 40 Q 535 30 580 40 Q 615 50 660 40 Q 700 30 740 40 Q 770 55 800 40 L 800 100 Z " />

</svg>

<div class="wall"></div>
              
            
!

CSS

              
                body{
  margin:0;
  background-color:grey}

.hidden {
    visibility: hidden;
}
#wave{
  position: absolute;
  width: 150%;
  left:50%;
  top:10%;
}
#wave02{
  position: absolute;
  width: 150%;
  left:40%;
  top:10%;
}
.wave02{
  fill: #0d0d85cf;
}
#wave03{
  position: absolute;
  width: 100%;
  left:50%;
  top:10%;
}
.wall{
  position: absolute;
  width: 15%;
  height: 100%;
  background: black;
  left: 93%;
}
              
            
!

JS

              
                
TweenLite.set('#wave, #wave02, #wave03, .wall',{xPercent:-50})

var action = new TimelineMax({repeat:-1,yoyo:true})
	.to("#wave .one",2, {morphSVG:".03", ease:Sine.easeInOut })
	.to("#wave02 .one",2, {morphSVG:".two", ease:Sine.easeInOut },0)
  .to('#wave, #wave02',2,{xPercent:-40, ease:Sine.easeInOut},0)

TweenMax.to('#wave03 path',1,{y:'-=30', ease:Sine.easeInOut,               repeat:-1,yoyo:true,repeatDelay:1})

// ,paused:true
              
            
!
999px

Console