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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
<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 415.1 387" style="enable-background:new 0 0 415.1 387;" xml:space="preserve">
<style type="text/css">
	.st0{fill:none;stroke:#F8D31E;stroke-width:3;stroke-miterlimit:10;}
	.st1{fill:none;stroke:#F8D31E;stroke-width:10;stroke-miterlimit:10;}
</style>
<g id="one">
  <g id="left1">
	<polygon class="st0" points="26.7,376.1 114.7,376.1 38.7,279.5 	"/>
</g>
<g id="left2">
	<polygon class="st0" points="38.7,276.8 83.1,279.5 114.3,375 	"/>
</g>
<g id="left3">
	<polygon class="st0" points="83.1,279.5 126.6,281.9 114.3,375 	"/>
</g>
<g id="left4">
	<polygon class="st0" points="38.7,276.8 73.7,243.3 83.1,279.5 	"/>
</g>
<g id="left5">
	<polygon class="st0" points="83.1,279.5 126.6,281.9 139.8,178.4 73.7,243.3 	"/>
</g>
<g id="left6">
	<polygon class="st0" points="38.7,276.8 73.7,243.3 50.9,178.4 	"/>
</g>
<g id="left7">
	<polygon class="st0" points="50.9,178.4 139.8,178.4 73.7,243.3 	"/>
</g>
<g id="left8">
	<path class="st0" d="M50.9,178.4c5.3,0,88.8,0,88.8,0L56.2,83.7L50.9,178.4z"/>
</g>
<g id="left9">
	<polygon class="st0" points="139.8,178.4 151.1,89.5 56.2,83.7 	"/>
</g>
<g id="left10">
	<path class="st0" d="M151.1,89.5c0,0,6.3-55-24.4-64.4c-19.9,14.1-70.4,58.6-70.4,58.6L151.1,89.5z"/>
</g>
<g id="left11">
	<polygon class="st0" points="124.1,26.3 6.6,78.2 56.2,80.7 	"/>
</g>
<g id="left12">
	<path class="st0" d="M18.3,7.3l23.9,70.8c0,0-33.9,1.5-33.6-0.9S18.3,7.3,18.3,7.3z"/>
</g>
<g id="left13">
	<path class="st0" d="M18.3,7.3l18.9,57.3l89.5-39.5c0,0,1.8-10.7-31.3-20.1C63.6,5,18.3,7.3,18.3,7.3"/>
</g>  
</g>
<g id="six">
  <g id="right1">
	<path class="st0" d="M152.4,348.1l88.6-43.9l35.4,77.5h-70.9C205.5,381.7,169.8,377,152.4,348.1z"/>
</g>
<g id="right2">
	<polygon class="st0" points="241,304.2 255.5,307.7 287,306 276.5,381.7 	"/>
</g>
<g id="right3">
	<polygon class="st0" points="287,306 276.5,381.7 314.1,381.1 333.5,375 	"/>
</g>
<g id="right4">
	<path class="st0" d="M287,306l8.5-9.8l92.2-5.8l-7.3,35.5c0,0-19.7,40.8-43,48h-4.6L287,306z"/>
</g>
<g id="right5">
	<polygon class="st0" points="152.4,348.1 193.8,284.7 147.8,273.4 143.4,332.1 	"/>
</g>
<g id="right6">
	<polygon class="st0" points="152.4,348.1 237.5,306 234.5,290.4 198,281.9 	"/>
</g>
<g id="right8">
	<polygon class="st0" points="387.7,290.4 303,243.3 342,205.7 	"/>
	<polygon class="st0" points="296.5,296.2 386.1,290.5 303,243.3 	"/>
</g>
<g id="right9">
	<polygon class="st0" points="198,281.9 241,216.7 234.5,290.4 	"/>
</g>
<g id="right10">
	<polygon class="st0" points="193.8,284.7 147.8,273.4 241,216.7 	"/>
</g>
<g id="right11">
	<polygon class="st0" points="291.6,216.7 303.9,141.9 333.5,191.6 	"/>
</g>
<g id="right12">
	<path class="st0" d="M387.7,290.4l8.8-79.5c0,0,2.6-32.5-13.4-42.6c-6.6,6-41.1,37.5-41.1,37.5L387.7,290.4z"/>
</g>
<g id="right13">
	<path class="st0" d="M303,243.3c0,0,1.5-15.5,0-18s-7-8-10.5-8.5c5.6-2.5,41-25.1,41-25.1l8.5,14.1L303,243.3z"/>
</g>
<g id="right14">
	<polygon class="st0" points="292.5,216.7 303,141.9 241,216.7 	"/>
	<polygon class="st0" points="342,205.7 333.5,191.6 379.2,169.9 	"/>
	<polygon class="st0" points="241,216.7 157.2,193.7 147.8,273.4 	"/>
</g>
<g id="right15">
	<path class="st0" d="M333.5,191.6l-29.6-49.7l31.5,1.3c0,0,36.7,11.3,47.1,23.5C375.4,170.7,333.5,191.6,333.5,191.6z"/>
	<polygon class="st0" points="243.5,216.7 254,141.7 303.9,141.9 	"/>
</g>
<g id="right16">
	<polygon class="st0" points="333.5,191.6 382.6,166.8 349.8,146.6 303.9,141.9 	"/>
	<path class="st0" d="M157.2,193.7"/>
	<path class="st0" d="M254,138.2c-4.5-0.5-43,24.5-43,24.5l30,54L254,138.2z"/>
</g>
<g id="right17">
	<polygon class="st0" points="157.2,193.7 211,162.7 241,216.7 	"/>
</g>
<g id="right18">
	<polygon class="st0" points="157.2,193.7 169.7,91.7 211,162.7 	"/>
</g>
<g id="right19">
	<polygon class="st0" points="254,138.2 169.7,91.7 211,162.7 	"/>
</g>
<g id="right20">
	<polygon class="st0" points="254,138.2 256.9,105.3 172.9,93.5 	"/>
</g>
<g id="right21">
	<polygon class="st0" points="256.9,105.3 260.4,95.1 225.5,16.8 190.5,41.1 172.7,75.8 169.7,91.7 	"/>
</g>
<g id="right22">
	<polygon class="st0" points="260.4,95.1 267,87.7 225.5,16.8 	"/>
	<polygon class="st0" points="353.5,83.7 331.5,9.7 296.5,53.5 	"/>
</g>
<g id="right23">
	<polygon class="st0" points="267,87.7 296.5,53.5 225.5,16.8 	"/>
</g>
<g id="right24">
	<polygon class="st0" points="273.3,84.7 353.5,83.7 296.5,53.5 	"/>
</g>
<g id="right25">
	<polygon class="st0" points="296.5,53.5 333.5,9.7 254,9.7 225.5,16.8 	"/>
</g>
<g id="right26">
	<polygon class="st0" points="333.5,9.7 353.5,83.7 409.5,9.7 	"/>
</g>
<g id="right27">
	<polygon class="st0" points="353.5,83.7 401.5,83.7 409.5,9.7 	"/>
</g>  
</g>
<g id="outline-path">
	<g>
		<path class="st1" d="M16,5L5.7,78.2h33c0,0,21.6-2.7,20.9,19.5S26.7,378.2,26.7,378.2h87.9l37.6-298c0,0,6.7-63.1-62.4-75.2
			C63.7,5,16,5,16,5z"/>
		<path class="st1" d="M409.5,9.7h-78h-76c0,0-75.5,3-85.5,79.8s-26.5,220.7-26.5,220.7s-5.5,60,62,71.5c26.5,0,97.5,0,97.5,0
			s57,4,80.5-64c5-24,13-106.9,13-106.9s6-60.6-68.5-68.6c-27.5-0.5-74-0.5-74-0.5l0,0l3-38.5c0,0,4-19.5,23-19.5s121.5,0,121.5,0
			L409.5,9.7z"/>
		<polygon class="st1" points="243,214.2 292,214.2 303.9,141.9 254,141.7 		"/>
		<path class="st1" d="M243,214.2l-9,74.5c0,0,1,15,13,17.5s34,0,34,0s14,0.5,18.5-23.5s6.5-49,6.5-49s-1-15-14-19.5
			C278,214.2,243,214.2,243,214.2z"/>
	</g>
</g>
</svg>

              
            
!

CSS

              
                $gold: #f8d31f;
$bg: radial-gradient(#333, #222);

* {
  box-sizing: border-box;
}

body, html {
  width: 100vw;
  height: 100vh;
  overflow-x: hidden;
  background: $bg;
}

svg {
  display: block;
  width: 22vw;
  min-width: 200px;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
}

.st0, .st1{fill:$gold;stroke:$gold;stroke-width:3;stroke-miterlimit:10;transform:translate3d(0,0,0);transition:all 0.25s;}
#outline-path{fill:none;stroke:$gold;stroke-width:10;stroke-miterlimit:10;}

              
            
!

JS

              
                var onePaths = $('#one g .st0');
var sixPaths = $("#six g .st0");
var oneTL = new TimelineMax({repeat:-1, ease: Power2.easeOut});
var sixTL = new TimelineMax({repeat:-1, ease: Power2.easeOut});
var gold = "#f8d31f";
var bg = "transparent";

// To Gold
onePaths.each(function() {
  oneTL.to($(this), 0.3, {fill:gold}, '-=0.25');
});
sixPaths.each(function() {
  sixTL.to($(this), 0.06, {fill:gold}, '-=0.037');
});
oneTL.to('',0.75, {fill:bg});
sixTL.to('',0.75, {fill:gold});

// To Empty
onePaths.each(function() {
  oneTL.to($(this), 0.3, {fill:bg}, '-=0.25');
});
sixPaths.each(function() {
  sixTL.to($(this), 0.06, {fill:bg}, '-=0.037');
});
oneTL.to('',0.15, {fill:bg});
sixTL.to('',0.15, {fill:gold});

              
            
!
999px

Console