cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Untitled

A Pen By Captain Anonymous

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.

            
              							<div class="svg_test">
								<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 405 237" style="enable-background:new 0 0 405 237;" xml:space="preserve">
									<style type="text/css">
										.st0{fill:#ED1849;}
										.st1{fill:#F47B20;}
										.st2{fill:#47C3D3;}
										.svg_test{width: 350px; margin: 0 auto 100px auto;}
										#final{display: none;}
										#letters{display: none;}
									</style>

									<g id="final">
										<path id="l9f" class="st0" d="M335.4,129h-3.1v-17.6h-16.4V129H307v16.2h8.8v23c0,19.6,9.8,28.6,30.8,28.6h5.9v-16.2h-8.7
											c-8.4,0-11.6-2.8-11.6-10.6v-24.8l20.3,0V129L335.4,129L335.4,129z"/>
										<path id="l8f" class="st1" d="M304.4,181.8h-38.2c-6.1,0-8.6-5.9-8.6-9.9h26.9c12.5,0,23.2-8.6,23.2-21.5
											c0-12.9-10.6-21.4-23.2-21.4h-18.3c-12.7,0-24,8.5-24,21.4v18.8c0,15.9,9.1,27.4,24,27.4l3.1,0.3h35.1L304.4,181.8z M257.5,150.4
											c0-4.3,3.4-6.7,8.3-6.7h17.8c4.9,0,8.3,2.4,8.3,6.7c0,4.4-3.4,6.8-8.3,6.8h-26.1V150.4z"/>
										<path id="l7f" class="st2" d="M192.4,144.6v52.2h16.6v-28.5l24.8,28.5h21.5l-29.8-34.5l26.9-31.9h-21.5l-21.9,26.2V129v-14.5V99.2
											c-0.1,0-0.2-0.1-0.3-0.1h-16.2v0.2h-0.2v28.9V144.6z"/>
										<path id="l6f" class="st0" d="M187.5,144.6h5v-16.5h-5.8c-9.1,0-16.8,3.7-21.9,8.9v-8.9H149v25.2c0,0,0,0,0,0v43.5h16.4v-28.5
											C165.5,151.6,171.9,144.6,187.5,144.6z"/>
										<path id="l5f" class="st1" d="M115.7,128.2c-0.3,0-26.8,0-26.8,0v16.1h35.7c6.1,0,8.6,4.5,8.6,8.2h-26.1c-12.6,0-23.5,7.5-23.5,21
											c0,13.1,10.5,23.1,23.5,23.1l3.4,0.3H149v-43.5c0-13.8-8.7-23.5-20.4-24.9C128.6,128.4,125.3,128,115.7,128.2z M133.2,181.6h-25.6
											c-4.8,0-8.6-3.2-8.6-8c0-4.1,3.1-6.1,8.6-6.1h25.6V181.6z"/>
										<path id="l4f" class="st2" d="M308.9,72.1c0-7.7,4.9-12.7,11.7-12.7c7,0,11.7,5,11.7,12.7v39.3h16.6V75.8
											c0-20.2-11.8-31.5-28.3-31.5c-7.7,0-14.6,3.2-19.9,9.5c-5.6-6.3-12.5-9.5-19.9-9.5c-16.4,0-28.1,11.3-28.1,31.5v35.5h16.4V72.1
											c0-7.7,4.9-12.7,11.7-12.7c7,0,11.7,5,11.7,12.7v39.3h16.4V72.1z"/>
										<path id="l3f" class="st0" d="M236.2,31.6l0.1,39.9c0,9-5.6,14.9-13.6,14.9c-8,0-13.7-5.9-13.7-14.1l0-40.7h-16.4l0,37.2v0
											c0,8.6,0.8,15.3,5.7,21.6c2.9,3.7,6.5,6.6,10.5,8.6h0.3v0.1c4.2,2,8.8,3.1,13.6,3.1c5,0,9.5-1,13.5-2.9v2.4c0,6.3-4.1,12-8.4,12.7
											l-18.7,0V129h17.8c15.4,0,25.7-12.6,25.7-26.2V69.1c0-0.1,0-0.1,0-0.2v0l0-37.2H236.2z"/>
										<path id="l2f" class="st1" d="M169.1,31.7l-0.8-0.1h-36.1l0.2,16h35.7c6.1,0,8.6,4.4,8.6,8.1h-26.1c-11.1,0-21,5.8-23.1,16.4
											c-0.3,1.4-0.4,2.8-0.4,4.3c0,5.4,1.9,10.3,5,14.2c4.3,5.3,11,8.6,18.5,8.6h41.8v-0.2h0.2V56.6C192.6,41.7,182.3,31.7,169.1,31.7z
											 M176.7,84.5h-25.6c-4.8,0-8.6-3.1-8.6-7.9c0-4,3.1-6,8.6-6h25.6V84.5z"/>
										<path id="l1f" class="st2" d="M132.2,128.4V92.9c0-0.8,0-1.5,0-2.3c-0.3-7.4-1.9-13.6-4.5-18.5c-4.6-8.6-12.5-13.2-21.9-13.2
											c-6.5,0-11.4,1.8-17,6.4V31.6H72.1v96.8h16.6V92.6c0-10.7,5.7-17.1,13.5-17.1c8.2,0,13.5,5.7,13.5,14.6v38.3L132.2,128.4z"/>
									</g>
									<g id="letters">
										<path id="l9" class="st0" d="M364.9,141.5h-3.1v-17.6h-16.4v17.6h-8.8v16.2h8.8v23c0,19.6,9.8,28.6,30.8,28.6h5.9v-16.2h-8.7
											c-8.4,0-11.6-2.8-11.6-10.6v-24.8l20.3,0v-16.2L364.9,141.5L364.9,141.5z"/>
										<path id="l8" class="st1" d="M313.1,194.3h-38.2c-6.1,0-8.6-5.9-8.6-9.9h26.9c12.5,0,23.2-8.6,23.2-21.5
											c0-12.9-10.6-21.4-23.2-21.4h-18.3c-12.7,0-24,8.5-24,21.4v18.8c0,15.9,9.1,27.4,24,27.4l3.1,0.3h35.1L313.1,194.3z M266.3,162.9
											c0-4.3,3.4-6.7,8.3-6.7h17.8c4.9,0,8.3,2.4,8.3,6.7c0,4.4-3.4,6.8-8.3,6.8h-26.1V162.9z"/>
										<path id="l7" class="st2" d="M176.6,157.1v52.2h16.6v-28.5l24.8,28.5h21.5l-29.8-34.5l26.9-31.9h-21.5l-21.9,26.2v-27.6V127v-15.3
											c-0.1,0-0.2-0.1-0.3-0.1h-16.2v0.2h-0.2v28.9V157.1z"/>
										<path id="l6" class="st0" d="M148.3,157.1h5v-16.5h-5.8c-9.1,0-16.8,3.7-21.9,8.9v-8.9h-15.7v25.2c0,0,0,0,0,0v43.5h16.4v-28.5
											C126.3,164.1,132.7,157.1,148.3,157.1z"/>
										<path id="l5" class="st1" d="M55.3,140.7c-0.3,0-26.8,0-26.8,0v16.1h35.7c6.1,0,8.6,4.5,8.6,8.2H46.7c-12.6,0-23.5,7.5-23.5,21
											c0,13.1,10.5,23.1,23.5,23.1l3.4,0.3h38.5v-43.5c0-13.8-8.7-23.5-20.4-24.9C68.2,140.9,65,140.5,55.3,140.7z M72.8,194.1H47.2
											c-4.8,0-8.6-3.2-8.6-8c0-4.1,3.1-6.1,8.6-6.1h25.6V194.1z"/>
										<path id="l4" class="st2" d="M334.3,72.1c0-7.7,4.9-12.7,11.7-12.7c7,0,11.7,5,11.7,12.7v39.3h16.6V75.8
											c0-20.2-11.8-31.5-28.3-31.5c-7.7,0-14.6,3.2-19.9,9.5c-5.6-6.3-12.5-9.5-19.9-9.5c-16.4,0-28.1,11.3-28.1,31.5v35.5h16.4V72.1
											c0-7.7,4.9-12.7,11.7-12.7c7,0,11.7,5,11.7,12.7v39.3h16.4V72.1z"/>
										<path id="l3" class="st0" d="M260.8,31.6l0.1,39.9c0,9-5.6,14.9-13.6,14.9c-8,0-13.7-5.9-13.7-14.1l0-40.7h-16.4l0,37.2v0
											c0,8.6,0.8,15.3,5.7,21.6c2.9,3.7,6.5,6.6,10.5,8.6h0.3v0.1c4.2,2,8.8,3.1,13.6,3.1c5,0,9.5-1,13.5-2.9v2.4c0,6.3-4.1,12-8.4,12.7
											l-18.7,0V129h17.8c15.4,0,25.7-12.6,25.7-26.2V69.1c0-0.1,0-0.1,0-0.2v0l0-37.2H260.8z"/>
										<path id="l2" class="st1" d="M177,31.7l-0.8-0.1h-36.1l0.2,16H176c6.1,0,8.6,4.4,8.6,8.1h-26.1c-11.1,0-21,5.8-23.1,16.4
											c-0.3,1.4-0.4,2.8-0.4,4.3c0,5.4,1.9,10.3,5,14.2c4.3,5.3,11,8.6,18.5,8.6h41.8v-0.2h0.2V56.6C200.5,41.7,190.2,31.7,177,31.7z
											 M184.7,84.5H159c-4.8,0-8.6-3.1-8.6-7.9c0-4,3.1-6,8.6-6h25.6V84.5z"/>
										<path id="l1" class="st2" d="M119.2,128.4V92.9c0-0.8,0-1.5,0-2.3c-0.3-7.4-1.9-13.6-4.5-18.5C110,63.5,102.2,59,92.8,59
											c-6.5,0-11.4,1.8-17,6.4V31.6H59.2v96.8h16.6V92.6c0-10.7,5.7-17.1,13.5-17.1c8.2,0,13.5,5.7,13.5,14.6v38.3L119.2,128.4z"/>
									</g>
									<g id="dots">
										<g id="d9">
											<circle class="st0 bottom" cx="358.9" cy="170.8" r="14.6"/>
										</g>
										<g id="d8">
											<circle class="st1 bottom" cx="283.3" cy="170.8" r="14.6"/>
										</g>
										<g id="d7">
											<circle class="st2 bottom" cx="207.8" cy="170.8" r="14.6"/>
										</g>
										<g id="d6">
											<circle class="st0 bottom" cx="132.3" cy="170.8" r="14.6"/>
										</g>
										<g id="d5">
											<circle class="st1 bottom" cx="56.8" cy="170.8" r="14.6"/>
										</g>
										<g id="d4">
											<circle class="st2 top" cx="321.1" cy="74.5" r="14.6"/>
										</g>
										<g id="d3">
											<circle class="st0 top" cx="245.6" cy="74.5" r="14.6"/>
										</g>
										<g id="d2">
											<circle class="st1 top" cx="170" cy="74.5" r="14.6"/>
										</g>
										<g id="d1">
											<circle class="st2 top" cx="94.5" cy="74.5" r="14.6"/>
										</g>
									</g>
									</svg>

	
							</div>
            
          
!
            
              // SVG animation
	MorphSVGPlugin.convertToPath("circle, rect, ellipse, line, polygon, polyline");
	var topSet = $('#dots .top');
	var bottomSet = $('#dots .bottom');
  var all = $('.svg_test #dots path');
	TweenMax.set(topSet,{y:48});
	TweenMax.set(bottomSet,{y:-48});

	var tl_svg = new TimelineMax({repeat:-1, yoyo:true});
	
			tl_svg.appendMultiple([						
				TweenMax.allFrom(topSet, 0.5, { y:"-=20",scale:0,transformOrigin:"center center", ease:Back.easeOut},0.15),
				TweenMax.allFrom(bottomSet, 0.5, { y:"+=20", scale:0,transformOrigin:"center center", ease:Back.easeOut},0.15)
				],
				1, // delay
				"TweenAlign.START",
				0.1);// stagger

			tl_svg.appendMultiple([						
				TweenMax.allTo(topSet, 0.5, { y:"-=48",ease:Back.easeOut},0.1),
				TweenMax.allTo(bottomSet, 0.5, { y:"+=48", ease:Back.easeOut},0.1)
				],
				0, // delay
				"TweenAlign.START",
				0);// stagger

			tl_svg.appendMultiple([						
				TweenMax.to("#dots #d1 path", 0.5, { morphSVG:"#letters #l1",ease:Back.easeOut}),
				TweenMax.to("#dots #d2 path", 0.5, { morphSVG:"#letters #l2",ease:Back.easeOut}),
				TweenMax.to("#dots #d3 path", 0.5, { morphSVG:"#letters #l3",ease:Back.easeOut}),
				TweenMax.to("#dots #d4 path", 0.5, { morphSVG:"#letters #l4",ease:Back.easeOut}),
				TweenMax.to("#dots #d5 path", 0.5, { morphSVG:"#letters #l5",ease:Back.easeOut}),
				TweenMax.to("#dots #d6 path", 0.5, { morphSVG:"#letters #l6",ease:Back.easeOut}),
				TweenMax.to("#dots #d7 path", 0.5, { morphSVG:"#letters #l7",ease:Back.easeOut}),
				TweenMax.to("#dots #d8 path", 0.5, { morphSVG:"#letters #l8",ease:Back.easeOut}),
				TweenMax.to("#dots #d9 path", 0.5, { morphSVG:"#letters #l9",ease:Back.easeOut})

				],
				0, // delay
				"TweenAlign.START",
				0.1);// stagger

			tl_svg.appendMultiple([						
				TweenMax.to("#dots #d1 path", 1, { morphSVG:"#final #l1f",ease:Sine.easeInOut}),
				TweenMax.to("#dots #d2 path", 1, { morphSVG:"#final #l2f",ease:Sine.easeInOut}),
				TweenMax.to("#dots #d3 path", 1, { morphSVG:"#final #l3f",ease:Sine.easeInOut}),
				TweenMax.to("#dots #d4 path", 1, { morphSVG:"#final #l4f",ease:Sine.easeInOut}),
				TweenMax.to("#dots #d5 path", 1, { morphSVG:"#final #l5f",ease:Sine.easeInOut}),
				TweenMax.to("#dots #d6 path", 1, { morphSVG:"#final #l6f",ease:Sine.easeInOut}),
				TweenMax.to("#dots #d7 path", 1, { morphSVG:"#final #l7f",ease:Sine.easeInOut}),
				TweenMax.to("#dots #d8 path", 1, { morphSVG:"#final #l8f",ease:Sine.easeInOut}),
				TweenMax.to("#dots #d9 path", 1, { morphSVG:"#final #l9f",ease:Sine.easeInOut})

				],
				0, // delay
				"TweenAlign.START",
				0.1);// stagger

tl_svg.appendMultiple([						
				TweenMax.allTo(all, 0.35, { css:{fill:"#ffffff"},repeat:1,yoyo:true,ease:Sine.easeInOut},0.05)
				],
				0, // delay
				"TweenAlign.START",
				0);// stagger
	// END SVG animation
            
          
!
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