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 class="inkwell-svg"
		 width="200" height="800" viewbox="0 1100 800 800"
>
	
	<path
				id="layer-1"
				class="layer"
				d="m 515.81083,212.51089 c -103.56553,1.68406 -205.33626,0.67587 -307.32851,0 l 56.93892,-68.58464 80.73886,-25.1766 85.07966,10.41789 59.03484,46.88062 z"


  />
	
	<path
				id="layer-2"
				class="layer"
       	d="m 206.2571,206.91503 313.69349,0 17.8026,61.77428 -2.45554,29.57279 c -117.13521,1.14261 -231.0603,0.56699 -345.00145,0 l 1.84164,-52.57384 z"



  />
	
	<path
				id="layer-3"
				class="layer"
       	d="m 213.62369,380.85072 303.25751,0 22.09975,-52.94338 -1.84168,-37.50443 -351.75414,0 10.436,58.86513 z"



  />
	
	<path
				id="layer-4"
				class="layer"
       	d="m 211.78206,373.45559 305.71302,0 -39.90229,53.22993 -55.24935,35.93022 -71.82415,10.64599 -80.4185,-25.94957 -49.72439,-50.56846 z"



  />
  
  <path
				id="inkwell"
				d="M 539.08203,294.96051 A 176.45233,176.45233 0 0 1 362.66743,471.41284 176.45233,176.45233 0 0 1 186.17738,295.03596 176.45233,176.45233 0 0 1 362.51652,118.50822 176.45233,176.45233 0 0 1 539.08197,294.80961" 
  />
	
	<path
				id="drop-body"
				class="drop"
       d="m 337.75456,444.10496 c 6.84628,-34.42969 26.06661,-62.86708 26.06661,-62.86708 0,0 23.17674,35.2078 25.15481,65.90566 1.4349,6.47023 -0.70789,33.6542 -26.47886,35.16044 -26.17871,-0.92035 -26.67487,-28.68 -24.74256,-38.19902 z"


  />
	
		<path
				id="drop-shadow"
					class="drop"
					d="m 373.98296,430.77082 c 0,0 5.70335,12.45747 4.54238,25.47559 -1.16088,13.01808 -11.56976,16.97852 -11.56976,16.97852 0,0 0.60559,-4.50315 4.70451,-16.81358 3.58442,-11.96738 2.32287,-25.64053 2.32287,-25.64053 z"



  />
	
	<path
				id="drop-base"
       d="m 398.57144,445.21933 a 30,30 0 1 1 -10e-6,-0.0257"
     transform="matrix(1.0925635,0,0,1.3076741,-40.231049,-158.7861)"
  />
	
	<path
				id="wave"
				d="m 454.56865,669.51434 a 79.802048,15.152288 0 1 1 -3e-5,-0.013"
				transform="translate(-12.121836,1200)"
  />

	
</svg>


              
            
!

CSS

              
                body {
 margin:0;
 background-color: #00c8c8;
 text-align: center;
}
svg {
  cursor:pointer;
}

#inkwell {
	stroke-width: 13.5px;
	stroke: #1a1a1a;
	fill: transparent;
}

#layer-1 {
	stroke: transparent;
	fill: #b6ffff;
}

#layer-2 {
	stroke: transparent;
	fill: #79ffff;
}

#layer-3 {
	stroke: transparent;
	fill: #00f3f3;
}

#layer-4 {
	stroke: transparent;
	fill: #00c8c8;
}

#drop-body {
	stroke: transparent;
	fill: #800080;
}

#drop-shadow {
	stroke: transparent;
	fill: #fff;
}

#drop-base {
	stroke: transparent;
	fill: #00c8c8;
}

.drop {
	opacity: 0;
}

#wave {
	stroke-width: 8px;
	stroke: #fff;
	fill: transparent;
	opacity: 0;
}

              
            
!

JS

              
                    var inkwellSVG = document.querySelector('.inkwell-svg');

    tl = new TimelineMax({paused:false, yoyo:false, repeat:-1}),

    tl.set("#wave", {opacity:0, scale:1})
    	.to("#layer-1", 1, {opacity:1, fill:"#e900e9"})
    	.to("#layer-2", 1, {opacity:1, fill:"#ce00ce"})
    	.to("#layer-3", 1, {opacity:1, fill:"#a000a0"})
    	.to("#layer-4", 1, {opacity:1, fill:"#800080"})
    	.to("#drop-base", 1, {opacity:1, fill:"#800080"}, "-=1" )

    	.to("#drop-base", 1.7, {y:"5px"}, "fall -=0.4" )
    	.to("#drop-body", 0.1, {fill:"#800080"}, "fall")
    	.to(".drop", 0.1, {y:"0px"}, "fall -=2")
    	.to(".drop", 0.1, {opacity:1}, "fall +=0.2")
    	.to(".drop", 2, {y:"1400px", ease: Expo.easeIn}, "fall -=0.2")
    	.to("#drop-base", 0.5, {opacity:0}, "fall +=1" )
    	.to(".drop", 0.1, {opacity:0})

    // wave sequence //
    	.to("#wave", 0.4, {scale:3 ,opacity:1, transformOrigin: "50% 50%"}, "-=0.1")
    	.to("#wave", 0.4, {opacity:0, ease: Expo.easeOut})
    	.to("#wave", 0.1, {scale:1, transformOrigin: "50% 50%"})

    	.to("body", 1, {backgroundColor:"#800080"}, "-=0.6")

    	.to("#layer-1", 1, {opacity:1, fill:"#b6ffff"}, "+=1")
    	.to("#layer-2", 1, {opacity:1, fill:"#79ffff"})
    	.to("#layer-3", 1, {opacity:1, fill:"#00f3f3"})
    	.to("#layer-4", 1, {opacity:1, fill:"#00c8c8"})
    	.to("#drop-base", 0.2, {y:"-30px"}, "-=1.5")
    	.to("#drop-base", 1, {opacity:1, fill:"#00c8c8"}, "-=1" )

    	.to("#drop-base", 1.7, {y:"5px"}, "fall-2 -=0.4" )
    	.to("#drop-body", 0.1, {fill:"#00c8c8"}, "fall-2 -=1")
    	.to(".drop", 0.1, {y:"0px"}, "fall-2 -=2")
    	.to(".drop", 0.1, {opacity:1}, "fall-2 +=0.2")
    	.to(".drop", 2, {y:"1400px", ease: Expo.easeIn}, "fall-2 -=0.2")
    	.to("#drop-base", 0.5, {opacity:0}, "fall-2 +=1" )
    	.to(".drop", 0.1, {opacity:0})
    	.to("#wave", 0.4, {scale:3 ,opacity:1, transformOrigin: "50% 50%"}, "-=0.1")
    	.to("#wave", 0.4, {opacity:0, ease: Expo.easeOut})

    	.to("body", 1, {backgroundColor:"#00c8c8"}, "-=0.6")





    inkwellSVG.onclick = function(){
      tl.restart();
    }
              
            
!
999px

Console