Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
	 viewBox="-169.2 698.3 850 630" enable-background="new -169.2 698.3 850 630" xml:space="preserve">
<g id="Master">
</g>
<g id="sc">
</g>
<g id="ma">
</g>
<g id="rp">
	<g id="rp-calls">
		<g>
			<rect x="-168.7" y="698.8" fill="#FFFFFF" width="849" height="629"/>
			<path fill="#CACAC7" d="M679.8,699.3v628h-848v-628H679.8 M680.8,698.3h-850v630h850V698.3L680.8,698.3z"/>
		</g>
		<line fill="none" stroke="#CACAC7" stroke-miterlimit="10" x1="72.2" y1="817.8" x2="72.2" y2="1329.3"/>
		<rect x="-139.3" y="746.2" fill="none" width="283.5" height="29.3"/>
		<rect x="-169.2" y="818.4" fill="#302F29" width="850" height="509.9"/>
		<text transform="matrix(1 0 0 1 159.9429 1055.9185)" fill="#5A5854" font-family="'ProximaNova-Regular'" font-size="20">AM</text>
		<text transform="matrix(1 0 0 1 161.3633 1105.5461)" fill="#5A5854" font-family="'ProximaNova-Regular'" font-size="20">PM</text>
		<g id="rp-calls-bottom">
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="216.7" y1="1238.2" x2="216.7" y2="1076.2"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="254.1" y1="1201.2" x2="254.1" y2="1076.2"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="291.5" y1="1181.3" x2="291.5" y2="1076.2"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="328.8" y1="1201.2" x2="328.8" y2="1076.2"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="366.2" y1="1181.3" x2="366.2" y2="1076.2"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="403.6" y1="1211.3" x2="403.6" y2="1076.2"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="441" y1="1181.3" x2="441" y2="1076.2"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="478.3" y1="1151.3" x2="478.3" y2="1076.2"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="515.7" y1="1151.3" x2="515.7" y2="1076.2"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="553.1" y1="1141.3" x2="553.1" y2="1076.2"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="590.5" y1="1140.3" x2="590.5" y2="1076.2"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="627.8" y1="1136.3" x2="627.8" y2="1076.2"/>
		</g>
		<g id="rp-calls-top">
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="216.7" y1="1071.3" x2="216.7" y2="1016.2"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="254.1" y1="1071.3" x2="254.1" y2="1023.2"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="291.5" y1="1071.3" x2="291.5" y2="1029.9"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="328.8" y1="1071.3" x2="328.8" y2="1009.8"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="366.2" y1="1071.3" x2="366.2" y2="1023.2"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="403.6" y1="1071.3" x2="403.6" y2="1011.6"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="441" y1="1071.3" x2="441" y2="968.2"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="478.3" y1="1071.3" x2="478.3" y2="947.2"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="515.7" y1="1071.3" x2="515.7" y2="892.2"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="553.1" y1="1071.3" x2="553.1" y2="916.9"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="590.5" y1="1071.3" x2="590.5" y2="926.6"/>
			<line fill="none" stroke="#00B4BB" stroke-width="7" stroke-linecap="round" x1="627.8" y1="1071.3" x2="627.8" y2="925.7"/>
		</g>
		<rect x="200.4" y="1055.9" fill="#302F29" width="460.9" height="36.2"/>
		<text transform="matrix(1 0 0 1 213.3296 1080.1893)" fill="#FCFBF6" font-family="'ProximaNova-Regular'" font-size="20">1</text>
		<text transform="matrix(1 0 0 1 248.2095 1080.1893)" fill="#FCFBF6" font-family="'ProximaNova-Regular'" font-size="20">2</text>
		<text transform="matrix(1 0 0 1 285.8896 1080.1893)" fill="#FCFBF6" font-family="'ProximaNova-Regular'" font-size="20">3</text>
		<text transform="matrix(1 0 0 1 323.2495 1080.1893)" fill="#FCFBF6" font-family="'ProximaNova-Regular'" font-size="20">4</text>
		<text transform="matrix(1 0 0 1 360.2896 1080.1893)" fill="#FCFBF6" font-family="'ProximaNova-Regular'" font-size="20">5</text>
		<text transform="matrix(1 0 0 1 397.6499 1080.1893)" fill="#FCFBF6" font-family="'ProximaNova-Regular'" font-size="20">6</text>
		<text transform="matrix(1 0 0 1 435.77 1080.1893)" fill="#FCFBF6" font-family="'ProximaNova-Regular'" font-size="20">7</text>
		<text transform="matrix(1 0 0 1 472.4692 1080.1893)" fill="#FCFBF6" font-family="'ProximaNova-Regular'" font-size="20">8</text>
		<text transform="matrix(1 0 0 1 509.73 1080.1893)" fill="#FCFBF6" font-family="'ProximaNova-Regular'" font-size="20">9</text>
		<text transform="matrix(1 0 0 1 543.4897 1080.1893)" fill="#FCFBF6" font-family="'ProximaNova-Regular'" font-size="20">10</text>
		<text transform="matrix(1 0 0 1 583.5894 1080.1893)" fill="#FCFBF6" font-family="'ProximaNova-Regular'" font-size="20">11</text>
		<text transform="matrix(1 0 0 1 618.4692 1080.1893)" fill="#FCFBF6" font-family="'ProximaNova-Regular'" font-size="20">12</text>
		<text transform="matrix(1 0 0 1 -137.4722 874.0143)" enable-background="new    "><tspan x="0" y="0" fill="#00B4BB" font-family="'ProximaNova-Regular'" font-size="20" letter-spacing="-2">T</tspan><tspan x="9.4" y="0" fill="#00B4BB" font-family="'ProximaNova-Regular'" font-size="20">otal Daily Calls</tspan></text>
		<text transform="matrix(1 0 0 1 -137.2983 920.4753)" fill="#FCFBF6" font-family="'ProximaNova-Regular'" font-size="20">Sun</text>
		<text transform="matrix(1 0 0 1 -137.2983 977.3503)" fill="#FCFBF6" font-family="'ProximaNova-Regular'" font-size="20">Mon</text>
		<text transform="matrix(1 0 0 1 -137.2983 1034.2252)" fill="#FCFBF6" font-family="'ProximaNova-Regular'" font-size="20">Tue</text>
		<text transform="matrix(1 0 0 1 -137.2983 1091.1002)" fill="#FCFBF6" font-family="'ProximaNova-Regular'" font-size="20">Wed</text>
		<text transform="matrix(1 0 0 1 -137.2983 1147.9752)" fill="#FCFBF6" font-family="'ProximaNova-Regular'" font-size="20">Thu</text>
		<text transform="matrix(1 0 0 1 -137.2983 1204.8502)" fill="#FCFBF6" font-family="'ProximaNova-Regular'" font-size="20">Fri</text>
		<text transform="matrix(1 0 0 1 -137.2983 1261.517)" fill="#FCFBF6" font-family="'ProximaNova-Regular'" font-size="20">Sat</text>
		<g id="rp-calls-left">
			<line fill="none" stroke="#F47D27" stroke-width="7" stroke-linecap="round" x1="-134.8" y1="936.9" x2="-47.1" y2="936.9"/>
			<line fill="none" stroke="#F47D27" stroke-width="7" stroke-linecap="round" x1="-134.8" y1="993.7" x2="65" y2="993.7"/>
			<line fill="none" stroke="#F47D27" stroke-width="7" stroke-linecap="round" x1="-134.8" y1="1050.6" x2="3" y2="1050.6"/>
			<line fill="none" stroke="#F47D27" stroke-width="7" stroke-linecap="round" x1="-134.8" y1="1107.5" x2="23" y2="1107.5"/>
			<line fill="none" stroke="#F47D27" stroke-width="7" stroke-linecap="round" x1="-134.8" y1="1164.4" x2="-27" y2="1164.4"/>
			<line fill="none" stroke="#F47D27" stroke-width="7" stroke-linecap="round" x1="-134.8" y1="1221.2" x2="23" y2="1221.2"/>
			<line fill="none" stroke="#F47D27" stroke-width="7" stroke-linecap="round" x1="-134.8" y1="1277.9" x2="-27" y2="1277.9"/>
		</g>
		
			<line opacity="0.5" fill="none" stroke="#9D9E9B" stroke-miterlimit="10" enable-background="new    " x1="129.4" y1="858.8" x2="129.4" y2="1285.3"/>
	<g id="btn-wrap">	
<g id="rp-calls-btn-today">
			<g>
				<path fill="#FFFFFF" d="M384.3,782.8H275.7c-13.6,0-24.8-11.2-24.8-24.8v-0.4c0-13.6,11.2-24.8,24.8-24.8h108.7V782.8z"/>
			</g>
			<text transform="matrix(1 0 0 1 290.625 764.618)" fill="#9D9E9B" font-family="'ProximaNova-Regular'" font-size="20">Today</text>
		</g>
		<g id="rp-calls-btn-thisweek">
			<rect x="384.3" y="732.8" fill="#00B4BB" width="133" height="50"/>
			<text transform="matrix(1 0 0 1 404.8687 764.618)" fill="#FFFFFF" font-family="'ProximaNova-Regular'" font-size="20">This Week</text>
		</g>
		<g id="rp-calls-btn-thismonth">
			<g>
				<path fill="#FFFFFF" d="M626,782.8H517.3v-50H626c13.6,0,24.8,11.2,24.8,24.8v0.4C650.8,771.6,639.7,782.8,626,782.8z"/>
			</g>
			<text transform="matrix(1 0 0 1 535.3188 764.618)" fill="#9D9E9B" font-family="'ProximaNova-Regular'" font-size="20">This Month</text>
		</g>
    
		<g>
			<path fill="#CACAC7" d="M626,733.8c13.1,0,23.8,10.7,23.8,23.8v0.4c0,13.1-10.7,23.8-23.8,23.8H275.7
				c-13.1,0-23.8-10.7-23.8-23.8v-0.4c0-13.1,10.7-23.8,23.8-23.8H626 M626,732.8H275.7c-13.6,0-24.8,11.2-24.8,24.8v0.4
				c0,13.6,11.2,24.8,24.8,24.8H626c13.6,0,24.8-11.2,24.8-24.8v-0.4C650.8,743.9,639.7,732.8,626,732.8L626,732.8z"/>
		</g>
    </g>
		<text transform="matrix(1 0 0 1 -139.3682 773.1028)"><tspan x="0" y="0" fill="#9D9E9B" font-family="'ProximaNova-Light'" font-size="40">Total Calls </tspan><tspan x="189.7" y="0" fill="#F47D27" font-family="'ProximaNova-Regular'" font-size="40">874</tspan></text>
	</g>
</g>
<g id="ov">
</g>
<g id="MA">
</g>
</svg>

              
            
!

CSS

              
                @import "bourbon";

body {
  text-align:center;
}
svg {
  width: 100%;
  max-width: 850px;
}
text,tspan {
  font-family: ProximaNova-Regular, sans-serif;
}
[id^="rp-calls-btn"] {
  path, rect {
    @include transition(all .3s ease);
  }
  text { fill: #9D9E9B; }
  path, rect { fill:white; }
  &:hover {
    cursor: pointer;
    path, rect { fill:#ddd; }
  }
  &.active {
    text { fill: white !important; }
    path, rect { fill:#00B4BB !important;}
  }
}
              
            
!

JS

              
                tl = new TimelineMax();

var elasticCustom = Elastic.easeOut.config(1, 0.4);

tl.staggerFrom("#rp-calls-left line", 1.4, {scaleX:0, transformOrigin:"left center", ease:elasticCustom, delay:.25 }, .1)
  .staggerFrom("#rp-calls-top line", 1.4, {scaleY:0, transformOrigin:"center bottom", ease:elasticCustom }, .04,"go -=1.4")
  .staggerFrom("#rp-calls-bottom line", 1.4, {scaleY:0, transformOrigin:"center top", ease:elasticCustom }, .04,"go -=1.4");

//tl.repeat("infinity").repeatDelay(.5);

var btn1 = document.getElementById("rp-calls-btn-today");
var btn2 = document.getElementById("rp-calls-btn-thisweek");
var btn3 = document.getElementById("rp-calls-btn-thismonth");

btn2.classList.add("active");

function moveBars(scale) {
  TweenMax.staggerTo("#rp-calls-left line", 1.4, {scaleX:scale, transformOrigin:"left center", ease:elasticCustom, delay:.25 }, .1);
  TweenMax.staggerTo("#rp-calls-top line", 1.4, {scaleY:scale, transformOrigin:"center bottom", ease:elasticCustom }, .04,"go -=1.2");
  TweenMax.staggerTo("#rp-calls-bottom line", 1.4, {scaleY:scale, transformOrigin:"center top", ease:elasticCustom }, .04,"go -=1.2");
}

btn1.onclick = function() {
  if(! btn1.classList.contains("active")){
    btn1.classList.add("active");
  }
  btn2.classList.remove("active");
  btn3.classList.remove("active");
  moveBars(.7);
}
btn2.onclick = function() {
  if(! btn2.classList.contains("active")){
    btn2.classList.add("active");
  }
  btn1.classList.remove("active");
  btn3.classList.remove("active");
  moveBars(1);
}
btn3.onclick = function() {
  if(! btn3.classList.contains("active")){
    btn3.classList.add("active");
  }
  btn1.classList.remove("active");
  btn2.classList.remove("active");
  moveBars(.5);
}
              
            
!
999px

Console