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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <div id="homeAnimContainer">
  <div id="txtMotion">
    <svg version="1.1" id="txt-motion" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
	viewBox="0 0 600 361" style="enable-background:new 0 0 600 361;" xml:space="preserve">

      
<g id="styleLineGroup"><path class="styleLine" d="M117.9,11.8c0,0,40.5,61.2,7.8,137.8C93,226.1,60.8,276.9,76.9,262.9C92.9,248.9,270,67.8,316.1,76.8
	c23.4,4.6,14.9,31.3,10.1,51.5c-6,25.3-26.4,99.4-39.5,143.4c-13.1,44-25.6,74.7-47.3,68.9c-36.3-9.7-36.9-156,88.7-198.1
	c88.5-29.7,146.6,15.6,176-1.4c19.6-11.3,13.8-31.9-16.5-35.8c-39.1-5.1-134.1-4.8-139.2,80.6c-2.6,43.3,66.5,69.7,115.6,65.9
	c49.1-3.8,72.8-26.3,60.3-29.1c-15.1-3.3-35.8,24.9-54.1,39.1c-18.3,14.2-66,47.8-99.3,40.1c-33.3-7.7-23.3-26,15.7-22.5
  c39,3.4,102,5.7,141-1.8"/></g>
      
<g id="circleBlastGroup">
	<circle class="circleBlast" style="opacity:.15;" cx="318.5" cy="188.4" r="10.6"/>
	<circle class="circleBlastTwo" style="opacity:0.25;" cx="296.7" cy="177.2" r="5"/>
	<circle class="circleBlast" style="opacity:0.5;" cx="322.8" cy="161.2" r="3.1"/>
	<circle class="circleBlast" style="opacity:1;" cx="293.2" cy="202.2" r="14.1"/>
	<circle class="circleBlastTwo" style="opacity:0.5;" cx="291.6" cy="162.4" r="2.3"/>
	<circle class="circleBlast" style="opacity:0.75;" cx="268.8" cy="209.5" r="2"/>
	<circle class="circleBlastTwo" style="opacity:0.25;" cx="329.1" cy="149.4" r="4.7"/>
	<circle class="circleBlast" style="opacity:1;" cx="264.5" cy="166.4" r="5.4"/>
	<circle class="circleBlastThree" style="opacity:0.5;" cx="268" cy="152.6" r="1.7"/>
	<circle class="circleBlastThree" style="opacity:0.75;" cx="338.6" cy="213.4" r="2.3"/>
</g>
      <g id="threeCircleGroup">
	<circle id="circleOne" class="circleOneColor" cx="300" cy="133.8" r="33"/>
	<circle id="circleTwo" class="circleTwoColor" cx="318" cy="120.9" r="33"/>
        <circle id="circleThree" class="circleThreeColor" cx="274.8" cy="111.5" r="33"/></g>
	<g>
		
<g id="motionText">
  <path class="motionTxtColor" d="M218.7,257.8v-66.5l-18.3,43.6h-4.6l-18.1-42.1v65h-5.2v-76.5h5.7l20,46.7l20-46.7h5.7v76.5H218.7z"/>
		<path class="motionTxtColor" d="M268,254.9c-2.8,2.5-7.2,3.8-12.3,3.8s-9.4-1.3-12.3-3.8c-5.4-4.6-6.4-8.9-6.4-35.4c0-26.4,1-30.7,6.4-35.4
			c2.8-2.5,7.2-3.8,12.3-3.8s9.4,1.3,12.3,3.8c5.4,4.6,6.4,8.9,6.4,35.4C274.5,246,273.4,250.3,268,254.9z M264.4,187
			c-1.9-1.7-4.9-2.7-8.6-2.7s-6.7,1-8.6,2.7c-4.1,3.8-4.9,7.1-4.9,32.6s0.8,28.8,4.9,32.6c1.9,1.7,4.9,2.7,8.6,2.7s6.7-1,8.6-2.7
			c4.1-3.8,4.9-7.1,4.9-32.6S268.5,190.7,264.4,187z"/>
		<path class="motionTxtColor" d="M300.4,185.2v72.6h-5.2v-72.6h-15.3v-3.9h35.9v3.9H300.4z"/>
		<path class="motionTxtColor" d="M324.2,257.8v-76.5h5.2v76.5H324.2z"/>
		<path class="motionTxtColor" d="M373.5,254.9c-2.8,2.5-7.2,3.8-12.3,3.8s-9.4-1.3-12.3-3.8c-5.4-4.6-6.4-8.9-6.4-35.4c0-26.4,1-30.7,6.4-35.4
			c2.8-2.5,7.2-3.8,12.3-3.8s9.4,1.3,12.3,3.8c5.4,4.6,6.4,8.9,6.4,35.4C380,246,378.9,250.3,373.5,254.9z M369.9,187
			c-1.9-1.7-4.9-2.7-8.6-2.7s-6.7,1-8.6,2.7c-4.1,3.8-4.9,7.1-4.9,32.6s0.8,28.8,4.9,32.6c1.9,1.7,4.9,2.7,8.6,2.7s6.7-1,8.6-2.7
			c4.1-3.8,4.9-7.1,4.9-32.6S374,190.7,369.9,187z"/>
		<path class="motionTxtColor" d="M425.4,257.8l-27.1-64.7v64.7h-5.2v-76.5h5.7l27.1,64.7v-64.7h5.2v76.5H425.4z"/>
    </g>
	</g>
</g>

     <g id="designText">
<path class="motionTxtColor" d="M317.1,238.7v-76.5h5.2v76.5H317.1z"/>
	<path class="motionTxtColor" d="M299.4,235.5c-3,2.5-7.1,3.8-13,3.8c-5.5,0-9.9-1.1-13.2-3.8c-4-3.4-5.3-7-5.3-15.5h5.2c0,6.6,0.9,9.9,4,12.5
		c2.1,1.7,5.2,2.8,9.3,2.8c4.5,0,7.5-1.1,9.4-2.8c3.5-2.9,4.1-6.7,4.1-13.3c0-10.1-1.9-14-10.1-16.8l-9.4-3.2
		c-9.4-3.2-11.9-7.6-11.9-19c0-6.4,1.9-11.5,5.8-14.7c3.1-2.6,7.2-4,12.6-4s9.8,1.4,12.9,4c4.4,3.8,5.2,7.8,5.2,14.2h-5.2
		c0-5.3-0.9-8.5-3.9-11.3c-2.1-1.9-5-3-9.2-3c-3.9,0-6.6,1-8.6,2.6c-3.2,2.6-4.5,7-4.5,12.1c0,9.7,1.5,12.7,10.7,15.8l9.4,3.2
		c9.5,3.2,11.2,9.6,11.2,20C305.1,227.3,303.4,232.1,299.4,235.5z"/>
	<path class="motionTxtColor" d="M416.9,238.7L389.8,174v64.7h-5.2v-76.5h5.7l27.1,64.7v-64.7h5.2v76.5H416.9z"/>
	<path class="motionTxtColor" d="M229.9,238.7v-76.5h29.7v3.9h-24.5v32.5h21.2v3.9h-21.2v32.5h24.5v3.9H229.9z"/>
	<path class="motionTxtColor" d="M210.4,235c-2.8,2.4-7.1,3.7-12.1,3.7H181v-76.5h17.3c5,0,9.3,1.3,12.1,3.7c5.4,4.6,6.3,8.5,6.3,34.6
		C216.8,226.5,215.8,230.4,210.4,235z M206.6,168.5c-1.9-1.6-4.9-2.5-8.6-2.5h-11.7v68.8h11.7c3.7,0,6.7-0.9,8.6-2.5
		c4.4-3.7,5-7,5-31.9C211.6,175.5,210.9,172.1,206.6,168.5z"/>
	<path class="motionTxtColor" d="M354.1,239.5c-5,0-9.4-1.3-12.3-3.8c-5.4-4.6-6.4-8.9-6.4-35.4c0-26.4,1-30.7,6.4-35.4
		c2.8-2.5,7.2-3.8,12.3-3.8c5.4,0,9.4,1.5,12.3,3.9c3.6,3.2,5.2,8,5.2,13.5h-5.2c0-6.8-2.5-13.5-12.3-13.5c-3.7,0-6.7,1-8.6,2.7
		c-4.1,3.8-4.9,7.1-4.9,32.6c0,25.5,0.8,28.8,4.9,32.6c1.9,1.7,4.9,2.7,8.6,2.7c6.7,0,12.3-4.1,12.3-12v-21.3h-12.3v-3.9h17.4v25.4
		C371.5,234.4,363,239.5,354.1,239.5z"/>
    </g>

    
<g id="txt-code">
	<path id="letter-o" class="txtLetters" d="M290.9,232.8c-2.8,2.5-7.2,3.8-12.3,3.8s-9.4-1.3-12.3-3.8c-5.4-4.6-6.4-8.9-6.4-35.4
		c0-26.4,1-30.7,6.4-35.4c2.8-2.5,7.2-3.8,12.3-3.8s9.4,1.3,12.3,3.8c5.4,4.6,6.4,8.9,6.4,35.4C297.4,223.9,296.3,228.2,290.9,232.8
		z M287.3,164.9c-1.9-1.7-4.9-2.7-8.6-2.7s-6.7,1-8.6,2.7c-4.1,3.8-4.9,7.1-4.9,32.6s0.8,28.8,4.9,32.6c1.9,1.7,4.9,2.7,8.6,2.7
		s6.7-1,8.6-2.7c4.1-3.8,4.9-7.1,4.9-32.6S291.4,168.7,287.3,164.9z"/>
	<path id="letter-e" class="txtLetters" d="M359.4,235.7v-76.5h29.7v3.9h-24.5v32.5h21.2v3.9h-21.2v32.5h24.5v3.9H359.4z"/>
	<path id="letter-c" class="txtLetters" d="M245.6,233.4c-2.7,2-6.4,3.2-11.4,3.2c-5,0-9.4-1.3-12.3-3.8c-5.4-4.6-6.4-8.9-6.4-35.4
		c0-26.4,1-30.7,6.4-35.4c2.8-2.5,7.2-3.8,12.3-3.8c5.4,0,9.3,1.4,12.1,3.8c3.7,3.2,5.3,8.2,5.3,13.6h-5.2c0-4.2-1-8.5-4.1-11.1
		c-1.8-1.5-4.5-2.5-8.1-2.5c-3.7,0-6.7,1-8.6,2.7c-4.1,3.8-4.9,7.1-4.9,32.6s0.8,28.8,4.9,32.6c1.9,1.7,4.9,2.7,8.6,2.7
		c3.6,0,6.3-1,8.1-2.5c3.1-2.6,4.1-6.9,4.1-11.1h5.2C251.7,225,249.9,230.3,245.6,233.4z"/>
	<path id="letter-d" class="txtLetters" d="M339.9,232.1c-2.8,2.4-7.1,3.7-12.1,3.7h-17.3v-76.5h17.3c5,0,9.3,1.3,12.1,3.7
		c5.4,4.6,6.3,8.5,6.3,34.6S345.3,227.5,339.9,232.1z M336.1,165.6c-1.9-1.6-4.9-2.5-8.6-2.5h-11.7v68.8h11.7c3.7,0,6.7-0.9,8.6-2.5
		c4.4-3.7,5-7,5-31.9C341.1,172.6,340.4,169.2,336.1,165.6z"/>
</g>
<g id="windowPointer">
	<path id="windowFull" class="motionStrokes" d="M318,132.6h17.2c1.3,0,2.3-1,2.3-2.3V82.8c0-1.3-1-2.3-2.3-2.3h-70.4c-1.3,0-2.3,1-2.3,2.3v47.5
		c0,1.3,1,2.3,2.3,2.3h26.8"/>
<g id="windowCircles">	<circle class="circlesWhite" cx="268.7" cy="86.2" r="1.9"/>
	<circle class="circlesWhite" cx="274.5" cy="86.2" r="1.9"/>
	<circle class="circlesWhite" cx="280.3" cy="86.2" r="1.9"/>
  </g>
	<line id="windowLine" class="motionStrokes" x1="262.5" y1="91.9" x2="337.5" y2="91.9"/>
	
<g id="linesBlastGroup">
  <line class="linesBlasters" x1="306" y1="115.3" x2="313.5" y2="117.6"/>
		<line class="linesBlasters" x1="306" y1="115.3" x2="313.5" y2="117.6"/>
		<line class="linesBlasters" x1="306.3" y1="111.9" x2="313.7" y2="110.2"/>
		<line class="linesBlasters" x1="304.4" y1="109.4" x2="309.7" y2="104.1"/>
		<line class="linesBlasters" x1="301.5" y1="107.8" x2="303.7" y2="100.3"/>
		<line class="linesBlasters" x1="298.4" y1="107.7" x2="296.4" y2="100.3"/>
		<line class="linesBlasters" x1="295.5" y1="109.2" x2="290.2" y2="104"/>
		<line class="linesBlasters" x1="293.8" y1="112.1" x2="286.3" y2="110.3"/>
		<line class="linesBlasters" x1="293.6" y1="115.6" x2="285.9" y2="117.7"/>
		<line class="linesBlasters" x1="295.4" y1="118.3" x2="289.7" y2="124"/>
	</g>
	<polygon id="windowArrow" class="windowArrowGreen" points="313.2,131.9 300,114.4 297.7,136.2 302.8,132.6 305.9,144.3 308.1,143.7 310.2,143.1 306.9,131.5 	"/>
</g>

</svg>

  </div></div>
              
            
!

CSS

              
                body, html{margin:0; padding:0; background:#384144;}
#homeAnimContainer{width:100%; position:relative;}

#txtMotion{position:absolute; left:50%; top:50%; width:100%; max-width:100%; height:auto; }

.styleLine{fill-rule:evenodd;clip-rule:evenodd;fill:none;stroke:#C6B38C;stroke-miterlimit:10;}

.circleBlast{fill:#6F7C77;}
.circleBlastTwo{fill:#C5B38C;}
.circleBlastThree{fill:#73BCA0;}
#circleBlastGroup{}

/* motion sequence*/
.circleOneColor{fill:#6F7C77;}
.circleTwoColor{opacity:0.18;fill:#C5B38C;}
.circleThreeColor{opacity:0.1;fill:#73BCA0;}
.motionTxtColor{fill:#C5B38C;}

/* code sequence*/
#txtCoding{position:absolute; left:50%; top:50%; width:100%; max-width:100%; height:auto; }
#linesBlastGroup line{visibility:hidden;}

.txtLetters{fill:#C5B38C;}
.motionStrokes{fill:none;stroke:#96a19d;stroke-width:1.1393;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
.circlesWhite{fill:#6F7C77;opacity:0.6;}
.linesBlasters{opacity:0.5;fill:none;stroke:#C5B38C;stroke-miterlimit:10;}
.windowArrowGreen{opacity:0.64;fill:#73BCA0;}
              
            
!

JS

              
                //center the container
TweenMax.set("#txtMotion", {transformOrigin:"50% 50%",xPercent: -50, yPercent: 0});
TweenMax.set("#circleOne, #circleTwo, #circleThree, #threeCircleGroup, #circleBlastGroup", {transformOrigin:"50% 50%"})
TweenMax.set("#circleTwo", {autoAlpha:0, x:-18, y:13})
TweenMax.set("#circleThree", {autoAlpha:0, x:25, y:22})
TweenMax.set("#circleBlastGroup", {y:-60})

TweenMax.set("#linesBlastGroup line", {autoAlpha:0});


// animate MOTION SEQUENCE
var motionSeq = new TimelineMax({});
motionSeq
.from("#circleOne", .75, {autoAlpha:0, y:-96, ease:Expo.easeIn})
.to("#circleTwo", .75, {y:0, x:0, autoAlpha:0.2, ease:Expo.easeOut})
.to("#circleThree", .75, {y:0, x:0, autoAlpha:0.2, ease:Expo.easeOut}, "-=.65")
.staggerFrom("#motionText path", 1, {opacity:0, cycle:{rotation:[5, 10, 0, -10], scale:[1.1, .5, 1, 1.2], y:[2, -2, 3, -1], x:[-5, 2, 1, -1], rotationX:[-5, 10], rotationY:[20, -10]}, ease:Expo.easeOut}, 0.05, "-=.9")
.staggerTo("#motionText path", 1, {opacity:0, cycle:{rotation:[5, 10, 0, -10], scale:[1.1, .5, 1, 1.2], y:[2, -2, 3, -1], x:[-5, 2, 1, -1], rotationX:[-5, 10], rotationY:[20, -10]}, ease:Expo.easeOut}, 0.05, "+=.1")
.to("#circleThree", .5, {scale:.6, attr:{cx:114, cy:88, ease:Expo.easeOut}},"-=1.4")
.to("#circleTwo", .5, {scale:.6, attr:{cx:231,cy:80, ease:Expo.easeOut}},"-=1.4")
.to("#circleOne", .5, {scale:.6, attr:{cx:100,cy:194, ease:Expo.easeOut}},"-=1.4")
.to("#threeCircleGroup", 2.5, {rotation:-130},"-=1.4")
.to("#circleOne, #circleTwo, #circleThree", .35, {scale:.2, autoAlpha:0, attr:{cx:300, cy:180, ease:Expo.easeIn}}, "-=1")
.staggerFrom(".circleBlast, .circleBlastTwo, .circleBlastThree", .5, {autoAlpha:0, attr:{cx:300,cy:175}, ease:Expo.easeOut},0.005, "-=.94")
.to("#circleBlastGroup", 2, {rotation:90},"-=1.7")
.staggerTo(".circleBlast, .circleBlastTwo, .circleBlastThree", 1, {autoAlpha:0, scale:0.5, attr:{cx:300,cy:175},ease:Expo.easeIn},0.005, "-=.5");

// animate DESIGN SEQUENCE
var designSeq = new TimelineMax({});
designSeq
.staggerFrom("#designText path", 1, {opacity:0, cycle:{rotation:[5, 10, 0, -10], scale:[1.1, .5, 1, 1.2], y:[2, -2, 3, -1], x:[-5, 2, 1, -1], rotationX:[-5, 10], rotationY:[20, -10]}, ease:Expo.easeOut}, 0.05, "-=.9")
.staggerTo("#designText path", 1, {opacity:0, cycle:{rotation:[5, 10, 0, -10], scale:[1.1, .5, 1, 1.2], y:[2, -2, 3, -1], x:[-5, 2, 1, -1], rotationX:[-5, 10], rotationY:[20, -10]}, ease:Expo.easeOut}, 0.05, "+=.1")
.fromTo("#styleLineGroup .styleLine", 3.2, {drawSVG:"30% 0%", autoAlpha:0, ease:Expo.easeOut}, {drawSVG:"100% 100%", autoAlpha:.7, ease:Expo.easeInOut}, "-=3");

// animate CODE SEQUENCE
var codeSeq = new TimelineMax({});
codeSeq
.fromTo("#windowFull", 1.5, {autoAlpha:0, drawSVG:"0% 0%"}, {autoAlpha:1, drawSVG:"100% 0%", ease:Expo.easeInOut})
.fromTo("#windowLine", .5, {drawSVG:"0% 0%"}, {drawSVG:"100% 0%", ease:Expo.easeInOut},"-=.8")
.staggerFrom("#windowCircles circle", .5, {transformOrigin:"50% 50%", scale:4, autoAlpha:0, ease:Expo.easeInOut}, .05,"-=.8")
.from("#windowArrow", .9, {transformOrigin:"0% 0%", rotation:-60, scale:5, autoAlpha:0, ease:Expo.easeInOut}, "-=.75")
.fromTo("#linesBlastGroup line", .6, {drawSVG:"0% 0%", autoAlpha:0}, {drawSVG:"100% 0%", autoAlpha:1, ease:Expo.easeIn}, "-=.65")
.fromTo("#linesBlastGroup line", .75, {drawSVG:"100% 0%"}, {drawSVG:"100% 100%", ease:Expo.easeOut})
.staggerFrom("#txt-code path", 1, {opacity:0, cycle:{rotation:[5, 10, 0, -10], scale:[1.1, .5, 1, 1.2], y:[2, -2, 3, -1], x:[-5, 2, 1, -1], rotationX:[-5, 10], rotationY:[20, -10]}, ease:Expo.easeOut}, 0.05, "1")
.to("#windowFull", 1.5, {autoAlpha:0, drawSVG:"0% 0%", ease:Expo.easeInOut}, "-=.7")
.to("#windowLine", .5, {drawSVG:"0% 0%", ease:Expo.easeInOut},"-=1")
.to("#windowArrow", 1, {rotation:-60, scale:5, autoAlpha:0, ease:Expo.easeInOut}, "-=1.3")
.staggerTo("#txt-code path", 1, {opacity:0, cycle:{rotation:[5, 10, 0, -10], scale:[1.1, .5, 1, 1.2], y:[2, -2, 3, -1], x:[-5, 2, 1, -1], rotationX:[-5, 10], rotationY:[20, -10]}, ease:Expo.easeOut}, 0.05, "-=1")
.staggerTo("#windowCircles circle", .5, {scale:2, autoAlpha:0, ease:Expo.easeInOut}, .05,"-=1.1");

var masterTimeline = new TimelineMax({repeat:-1});
 masterTimeline
 .add(motionSeq)
.add(designSeq, "-=2.1")
 .add(codeSeq, "-=1.8");


              
            
!
999px

Console