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

              
                <body>

	<svg id="animation" width="612px" height="400px" viewBox="0 0 612 400" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
	    <!-- Generator: Sketch 3.8.3 (29802) - http://www.bohemiancoding.com/sketch -->
	    <title>Auto-mation</title>
	    <desc>Created with Sketch.</desc>
	    <defs>
	        <rect id="path-1" x="0" y="0" width="70" height="87"></rect>
	        <polygon id="path-3" points="43 5.68434189e-14 86 43 2.84217094e-14 43"></polygon>
	        <polygon id="path-5" points="43 0 0 43 43 86"></polygon>
	        <circle id="path-7" cx="43" cy="43" r="43"></circle>
	        <circle id="path-9" cx="43" cy="43" r="43"></circle>
	        <rect id="path-11" x="0" y="0" width="86" height="105"></rect>
	    </defs>
	    <g id="automation" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
	        <g id="Auto-mation">
	            <rect id="bg" fill="#FDFCE5" x="0" y="0" width="612" height="400"></rect>
	            <rect id="dash" fill="#35B3D6" x="408" y="125" width="44" height="26"></rect>
	            <polygon id="A" fill="#D8447D" points="99.5 93 136 179 63 179"></polygon>
	            <g id="U" transform="translate(154.000000, 93.000000)">
	                <mask id="mask-2" fill="white">
	                    <use xlink:href="#path-1"></use>
	                </mask>
	                <g id="Mask"></g>
	                <g mask="url(#mask-2)">
	                    <rect id="Utop" fill="#09CE99" x="0" y="0" width="70" height="52"></rect>
	                    <g id="Ucircle" transform="translate(0.000000, 17.000000)">
	                        <path d="M69.9963991,35 C69.998797,34.8336156 70,34.6669463 70,34.5 C70,15.4461761 54.3299662,0 35,0 C15.6700338,0 0,15.4461761 0,34.5 C0,34.6669463 0.00120298199,34.8336156 0.00360086747,35 L69.9963991,35 Z" id="U2" fill="#099901"></path>
	                        <path d="M69.9963991,70 C69.998797,69.8336156 70,69.6669463 70,69.5 C70,50.4461761 54.3299662,35 35,35 C15.6700338,35 0,50.4461761 0,69.5 C0,69.6669463 0.00120298199,69.8336156 0.00360086747,70 L69.9963991,70 Z" id="U1" fill="#FFBB01" transform="translate(35.000000, 52.500000) rotate(-180.000000) translate(-35.000000, -52.500000) "></path>
	                    </g>
	                </g>
	            </g>
	            <rect id="Tv" fill="#35B4ED" x="253" y="93" width="30" height="86"></rect>
	            <rect id="Th" fill="#DB408A" x="237" y="93" width="63" height="27"></rect>
	            <circle id="Oouter" fill="#FDBA02" cx="347" cy="136" r="43"></circle>
	            <path d="M347,156 C358.045695,156 367,147.045695 367,136 C367,124.954305 358.045695,116 347,116 C335.954305,116 327,124.954305 327,136 C327,147.045695 335.954305,156 347,156 Z" id="Oinner" fill="#DB408A"></path>
	            <g id="Mbottom" transform="translate(63.000000, 255.000000)">
	                <mask id="mask-4" fill="white">
	                    <use xlink:href="#path-3"></use>
	                </mask>
	                <g id="Mask"></g>
	                <g id="MbottomGroup" mask="url(#mask-4)" fill="#099901">
	                    <polygon id="MbottomEl" points="43 5.68434189e-14 86 43 2.84217094e-14 43"></polygon>
	                </g>
	            </g>
	            <polygon id="Mleft" fill="#35B4ED" points="63 212 63 298 106 255"></polygon>
	            <g id="Mright" transform="translate(106.000000, 212.000000)">
	                <mask id="mask-6" fill="white">
	                    <use xlink:href="#path-5"></use>
	                </mask>
	                <g id="Mask"></g>
	                <g id="MrightGroup" mask="url(#mask-6)" fill="#FFBB01">
	                    <polygon id="MrightEl" points="43 0 0 43 43 86"></polygon>
	                </g>
	            </g>
	            <rect id="T2v" fill="#DB408A" x="263" y="212" width="27" height="86"></rect>
	            <rect id="T2h" fill="#FDBA02" style="mix-blend-mode: multiply;" x="247" y="212" width="59" height="28"></rect>
	            <polygon id="A2" fill="#09CE99" points="204 212 241 298 167 298"></polygon>
	            <rect id="I" fill="#35B4ED" x="320" y="212" width="27" height="86"></rect>
	            <g id="O2" transform="translate(364.000000, 212.000000)">
	                <mask id="mask-8" fill="white">
	                    <use xlink:href="#path-7"></use>
	                </mask>
	                <use id="O2outer" fill="#D8447D" xlink:href="#path-7"></use>
	                <g id="Group" mask="url(#mask-8)">
	                    <mask id="mask-10" fill="white">
	                        <use xlink:href="#path-9"></use>
	                    </mask>
	                    <use id="Mask" fill="#D8447D" xlink:href="#path-9"></use>
	                    <g mask="url(#mask-10)" id="O2inner" fill="#35B4ED">
	                        <g transform="translate(23.000000, 24.000000)">
	                            <circle style="mix-blend-mode: multiply;" cx="20" cy="20" r="20"></circle>
	                        </g>
	                    </g>
	                </g>
	            </g>
	            <g id="Nt" transform="translate(450.000000, 194.000000)">
	                <mask id="mask-12" fill="white">
	                    <use xlink:href="#path-11"></use>
	                </mask>
	                <g id="NtMask"></g>
	                <g id="NtGroup" mask="url(#mask-12)" fill="#FFBB01">
	                    <g transform="translate(19.000000, 19.000000)" id="NtEl">
	                        <polygon points="67.0000072 86 7.15255749e-06 86 0 0"></polygon>
	                    </g>
	                </g>
	            </g>
	            <rect id="Nr" fill="#09CE99" style="mix-blend-mode: multiply;" x="501" y="213" width="35" height="86"></rect>
	        </g>
	    </g>
	</svg>
	<div class="no-gif">
		Created in Javascript. No gifs<Br>
		<small><a href="https://greghub.github.io/auto-mation-animation/giphy.gif" target="_blank">original design by Mailchimp</a></small>
	</div>

</body>
              
            
!

CSS

              
                body {
  background-color: #FDFCE5;
  text-align: center
}
#Tv, #Th, #Oinner, #T2h, #I, #O2outer, #O2, #O2inner, #NtEl, #Nr {
  //mix-blend-mode: multiply;
}
#A, #Oinner, #Th {
  //mix-blend-mode: darken;
}
#A2 {
  visibility: hidden;
}
svg {
  position: relative;
  top: 50%;
}
.no-gif {
  font-family: 'Nunito', sans-serif;    
  font-size: 52px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 32px;
  color: #36b3d8;
  margin-top: 64px;
}
.no-gif {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  margin-top: 0px;
}
.no-gif a {
  color: #36b3d8;
}
              
            
!

JS

              
                $(window).load(function(){
	var aTween = new TimelineMax({repeat: -1});
	var uTween = new TimelineMax({repeat: -1, repeatDelay: 0.53});
	var tTween = new TimelineMax({repeat: -1});
	var oiTween = new TimelineMax({repeat: -1});
	var ooTween = new TimelineMax({repeat: -1, repeatDelay: 0.63});
	var dashTween = new TimelineMax({repeat: -1});

	var mTween = new TimelineMax({repeat: -1, repeatDelay: 4});
	var a2Tween = new TimelineMax({repeat: -1});
	var t2hTween = new TimelineMax({repeat: -1});
	var iTween = new TimelineMax({repeat: -1, repeatDelay: 2.6});
	var o2Tween = new TimelineMax({repeat: -1, repeatDelay: 2.2});
	var ntTween = new TimelineMax({repeat: -1, repeatDelay: 1});

	aTween
		.from('#A', 1.2, {scaleY: 0.1, scaleX: 1.1, transformOrigin:'50% 100%', ease: Elastic.easeOut.config(1, 0.3)})
		.to('#A', 0.46, {scaleY: 0.1, transformOrigin:'50% 100%', ease: Elastic.easeOut.config(1, 1), delay: 1});

	uTween
		.from('#Ucircle', 0.66, {y: -35}, 0.33)
		.from('#Utop', 0.66, {y: -52}, 0.33)
		.to("#Ucircle", 0.5, {rotation: 360, ease: Power2.easeOut, transformOrigin:'50% 50%', delay: 0.36})
		.to('#Ucircle', 0.46, {y: -35, delay: 0.16})
		.to('#Utop', 0.46, {y: -52}, '-=0.46');

	tTween
		.from("#Th", 0.53, {skewY: -20, scaleX: 0, transformOrigin:'left top', ease: Power2.easeOut})
		.to("#Tv", 0.33, {scaleX: 0, transformOrigin:'left top', ease: Power2.easeOut}, 0.33)
		.set("#Tv", {xPercent:100})
		.to("#Tv", 0.33, {scaleX: 1, transformOrigin:'right top', ease: Power2.easeOut})
		.to("#Th", 0.36, {skewY: 20, scaleX: 0, transformOrigin:'right top', ease: Power2.easeOut, delay: 0.33});

	oiTween
		.from("#Oinner", 0.40, {xPercent: 200}, 0.66)
		.to("#Oinner", 0.5, {xPercent: 163, scaleX: 0.7, delay: 3, ease: Power2.easeOut})
		.to("#Oinner", 0.66, {xPercent: 200, scaleX: 1, ease: Elastic.easeOut.config(1, 0.4)});

	ooTween
		.to("#Oouter", 0.53, {scale: 0.6, transformOrigin:'50% 50%'}, 3.6)
		.to("#Oouter", 0.18, {scale: 1, ease: Elastic.easeOut.config(1, 0.5)});

	dashTween
		.fromTo("#dash", 0.66, {scaleX: 0.8, x:88}, {scaleX: 0.6, x:40, ease: Power2.easeOut})
		.to("#dash", 0.8, {scaleX: 1, x:30, transformOrigin:'right top', ease: Elastic.easeOut.config(1, 0.4)})
		.to("#dash", 0.66, {scaleX: 0.6, x:88, transformOrigin:'right top', ease: Power2.easeOut}, 4.56)


	mTween
		.to('#MbottomEl', 0.33, {skewY: 46, transformOrigin: 'right top'})
		.to('#MrightEl', 0.33, {skewX: -46, transformOrigin: 'left top'})
		.fromTo('#Mleft', 0.33, {scaleX: 0}, {scaleX: 1, transformOrigin: 'left top', delay: 0.5})	
		.to('#MbottomEl', 0.33, {skewY: 0, transformOrigin: 'right top'})			
		.to('#MrightEl', 0.33, {skewX: 0, transformOrigin: 'left top'})

	a2Tween
		.set('#A2', {scale: 0.1, autoAlpha: 1, transformOrigin: 'center top'})
		.fromTo('#A2', 1, {y: -20}, {y: 0})
		.to('#A2', 0.26, {scaleY: 1})
		.to('#A2', 0.56, {scaleX: 1})
		.to('#A2', 0.43, {scaleX: 0.1, delay: 2.8})
		.to('#A2', 0.33, {scaleY: 0.1, y: -20})

	t2hTween
		.to('#T2h', 0.2, {x: 43, scaleX: 0.6, ease: Power2.easeOut, delay: 1.6})
		.to('#T2h', 0.16, {x: 0, scaleX: 1, delay: 0.13})
		.to('#T2h', 0.6, {y: 58, ease: Power2.easeOut, delay: 1})
		.to('#T2h', 0.16, {x: -50, scaleX: 0.5, delay: 0.26})
		.set('#T2h', {scaleY: 0, scaleX: 1, y: 0, x: 0})
		.to('#T2h', 0.5, {scaleY: 1, delay: 0.5})

	iTween
		.to('#I', 0.5, {rotation: 35, transformOrigin: 'bottom right', ease: Power2.easeOut}, 1.7)
		.to('#I', 0.33, {rotation: 0, transformOrigin: 'bottom right', ease: Elastic.easeOut.config(1, 0.4)})

	o2Tween
		.to('#O2inner', 0.2, {scale: 1.5, transformOrigin: 'center', yoyo: true, repeat: 1}, 2)
		.to('#O2inner', 0.2, {x: 64})
		.set('#O2inner', {x: -64})
		.to('#O2inner', 0.2, {x: 0})

	ntTween
		.fromTo('#NtEl', 1, {scaleY: 0, skewX: -21, transformOrigin: 'bottom'}, {scaleY: 1, skewX: 0, ease: Elastic.easeOut.config(1, 0.5)}, 0.33)
		.fromTo('#Nr', 0.5, {scaleX: 0, transformOrigin: 'right'}, {scaleX: 1}, 0.33)
		.to('#NtEl', 0.16, {delay: 0.83, xPercent: 100})
		.to('#Nr', 0.36, {scaleY: 0, transformOrigin: 'bottom'})
		.set('#NtEl', {xPercent: 0, skewX: 0}, 3)
		.fromTo('#NtEl', 1, {scaleY: 0, skewX: -21, transformOrigin: 'bottom'}, {scaleY: 1, skewX: 0, ease: Elastic.easeOut.config(1, 0.5)})
		.to('#Nr', 0.36, {scaleY: 1, transformOrigin: 'bottom'})
		.to('#NtEl', 0.16, {delay: 0.83, xPercent: 100, delay: 1})
		.to('#Nr', 0.36, {scaleY: 0, transformOrigin: 'bottom'})


});
              
            
!
999px

Console