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

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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 id="slider"></div> -->
<div class="container">
	<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1315.22 679">
		<defs>
			<linearGradient id="linear-gradient" x1="842" y1="501" x2="1315.22" y2="501" gradientUnits="userSpaceOnUse">
			  <stop offset="0" stop-color="#77578f"/>
			  <stop offset="1" stop-color="#995095"/>
			</linearGradient>
			<linearGradient id="linear-gradient-2" x1="988.22" y1="584" x2="1315.22" y2="584" gradientUnits="userSpaceOnUse">
			  <stop offset="0" stop-color="#8a5996"/>
			  <stop offset="1" stop-color="#a45499"/>
			</linearGradient>
			<linearGradient id="linear-gradient-3" x1="494.73" y1="551" x2="494.73" y2="451" gradientUnits="userSpaceOnUse">
			  <stop offset="0" stop-color="#e6f1f3"/>
			  <stop offset="1" stop-color="#b8cfd6"/>
			</linearGradient>
			<linearGradient id="linear-gradient-4" x1="823.47" y1="551" x2="823.47" y2="451" gradientUnits="userSpaceOnUse">
			  <stop offset="0" stop-color="#d03392"/>
			  <stop offset="1" stop-color="#a73d91"/>
			</linearGradient>
			<mask id="base-mask">
				<rect class="base-mask" x="331" y="451" width="656" height="0" fill="white"/>
			</mask>
			<mask id="bars-mask">
				<rect class="bars-mask" x="296" y="50" width="726" height="401" fill="white"/>
			</mask>
			<mask id="sidebars-mask">
				<rect class="sidebars-mask" x="2" y="451" width="1313" height="0" fill="white"/>
			</mask>
		</defs>
		<title>Total Followers</title>
		
		<g class="vs">
		  <path class="fvs-base" d="M661.5,20.88A16.5,16.5,0,1,1,645,37.38,16.5,16.5,0,0,1,661.5,20.88Z" transform="translate(0)" fill="#fff" fill-rule="evenodd"/>
		  <text class="sans-semi" transform="translate(652.3 42.83)" font-size="18" fill="#014b62" >vs</text>
		</g>
		
		<g class="fmain-bars" mask="url(#bars-mask)">
			<path class="fback-l" d="M296.22,267l90-50,90,50V451h-180Z" transform="translate(0)" fill="#436387" fill-rule="evenodd"/>
			<path class="fback-r" data-name="back" d="M1022,218l-90-50-90,50V451h180Z" transform="translate(0)" fill="#875994" fill-rule="evenodd"/>
			<g class="fprev-year">
			  <path class="fback-p-transp" d="M478.23,210l90-50,90,50V434.74h-180Z" transform="translate(0)" fill="#fff" fill-rule="evenodd" opacity="0.34"/>
			  <path class="fback-p" data-name="back" d="M478.23,226.21l90-50,90,50V451h-180Z" transform="translate(0)" fill="#fff" fill-rule="evenodd"/>
			</g>
			<g class="fcurr-year">
			  <path class="fback-c-transp" data-name="back2" d="M660.22,125l90-50,90,50V434.74h-180Z" transform="translate(0)" fill="#e23f96" fill-rule="evenodd" opacity="0.29"/>
			  <path class="fback-c" data-name="back" d="M660.22,141l90-50,90,50V451h-180Z" transform="translate(0)" fill="#e23f96" fill-rule="evenodd"/>
			</g>
		</g>
		
		<g class="fmain-bases" mask="url(#base-mask)">
			<path class="fbase" data-name="base" d="M478.23,451h180V551h-327Z" transform="translate(0)" fill-rule="evenodd" fill="url(#linear-gradient-3)"/>
			<path class="ffront" d="M331.23,551h327V679h-327Z" transform="translate(0)" fill="#fff" fill-rule="evenodd"/>
			<path class="fbase" data-name="base" d="M839.95,451H660.22V551h326.5Z" transform="translate(0)" fill-rule="evenodd" fill="url(#linear-gradient-4)"/>
			<path class="ffront" data-name="front" d="M660.22,551h327V679h-327Z" transform="translate(0)" fill="#e23f96" fill-rule="evenodd"/>
		</g>
		<g class="fside-bases" mask="url(#sidebars-mask)">
			<path class="fbase" d="M297.22,451H476L329,551H2Z" transform="translate(0)" fill="#335f80" fill-rule="evenodd"/>
			<path class="ffront" d="M2.22,551h327v66H2.22Z" transform="translate(0)" fill="#2d6882" fill-rule="evenodd"/>
			<path class="fbase" data-name="base" d="M1022,451H842L988.22,551h327Z" transform="translate(0)" fill-rule="evenodd" fill="url(#linear-gradient)"/>
			<path class="ffront" data-name="front" d="M988.22,551h327v66h-327Z" transform="translate(0)" fill-rule="evenodd" fill="url(#linear-gradient-2)"/>
		</g>
		<g class="ffigures">
		  <g class="ftotal">
			<path class="totals-base-circ" d="M658,596h1a21,21,0,0,1,0,42h-1a21,21,0,0,1,0-42Z" transform="translate(0)" fill="#104c60" fill-rule="evenodd"/>
			<path class="totals-base" d="M613,596h91a21,21,0,0,1,0,42H613a21,21,0,0,1,0-42Z" transform="translate(0)" fill="#104c60" fill-rule="evenodd"/>
			<text class="sans-semi totals-title" transform="translate(629.94 623.23)" font-size="16" fill="#fff" >TOTALS</text>
		  </g>
		  <text class="fsans-semi total-l" x="427" y="627" font-size="30" fill="#015873">1,973,342</text>
		  <text class="fsans-semi total-r" x="754" y="627" font-size="30" fill="#fff">2,263,895</text>
		  <text class="fsans-semi fperc" x="681" y="323" font-size="48" fill="#fff">14.7%</text>
		  <text class="fsans-semi fup" x="729" y="278" font-size="30" fill="#fff">UP</text>
		</g>
		
		<g class="fyear-l">
		  <path class="fyear-base" d="M541,16h54a21,21,0,0,1,0,42H541a21,21,0,0,1,0-42Z" transform="translate(0)" fill="none" stroke="#fff" stroke-miterlimit="10" fill-rule="evenodd"/>
		  <text class="sans-light" transform="translate(544.03 44.6)" font-size="21" fill="#fff">2014</text>
		</g>
		<g class="fyear-r">
		  <path class="fyear-base-2" data-name="year-base" d="M722.22,16h54a21,21,0,0,1,0,42h-54a21,21,0,0,1,0-42Z" transform="translate(0)" fill="none" stroke="#fff" stroke-miterlimit="10" fill-rule="evenodd"/>
		  <text class="sans-light"  transform="translate(724.48 44.6)" font-size="21" fill="#fff">2015</text>
		</g>
		
	</svg>


</div>
            
          
!
            
              body {
   background-image: linear-gradient(to right, #005872, #a63c92);
}

body,
html {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

#slider{
  width:300px;
  position:relative;
  margin: 30px auto;
}

.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1313px;
  height: 679px;
}

svg {
  width: 100%;
  height: 100%;
  visibility: hidden;
}

.sans-semi {
	font-family: "open-sans", sans-serif;
	font-weight: 600;
    font-style: normal;
}
.sans-light{
    font-family: 'open-sans', sans-serif;
    font-weight: 300;
    font-style: normal;
}

.totals-base {
	visibility: hidden;
}

            
          
!
            
              TweenMax.set('svg', {
	visibility: 'visible'
});


var ftl = new TimelineMax({ repeat: -1, yoyo: true, repeatDelay: 2 });

ftl.fromTo('.base-mask', 0.6, { attr:{height: 5} }, { attr:{height: 100}, ease: Power2.easeIn})
	.to('.base-mask', 0.4, { attr:{height: 228}, ease: Power2.easeOut})
	.fromTo('.sidebars-mask', 0.6, { attr:{height: 5} }, { attr:{height: 100}, ease: Power2.easeIn}, "-=0.8")
	.to('.sidebars-mask', 0.4, { attr:{height: 166}, ease: Power2.easeOut}, "-=0.2")
	.from('.fback-p-transp', 1, { y: 200, ease: Elastic.easeOut.config(0.9, 0.8) }, "-=0.6")
	.from('.fback-p', 0.6, { y: 200, ease: Power2.easeInOut }, "-=1.0" )
	.from('.fback-c-transp', 1, { y: 285, ease: Elastic.easeOut.config(0.9, 0.8) }, "-=0.9")
	.from('.fback-c', 0.6, { y: 285, ease: Power2.easeInOut }, "-=1.0" )
	.from('.fback-l', 0.6, { y: 158, ease: Power2.easeInOut }, "-=1" )
	.from('.fback-r', 0.6, { y: 208, ease: Power2.easeInOut }, "-=0.9" )
	.from('.vs', 0.6, { y:100, opacity: 0, ease: Elastic.easeOut.config(1.1, 0.7) }, "-=0.5")
	.from('.fyear-l', 0.6, { x:20, opacity: 0, ease: Elastic.easeOut.config(1.1, 0.7) }, "-=0.5")
	.from('.fyear-r', 0.6, { x:-20, opacity: 0, ease: Elastic.easeOut.config(1.1, 0.7) }, "-=0.6")
	.from('.totals-base-circ', 0.3, { scale: 0, transformOrigin: '50% 50%' }, "-=0.7")
	.to('.totals-base-circ', 0.6, { morphSVG:'.totals-base', ease: Elastic.easeOut.config(1.1, 0.7) }, "-=0.5")
	.from('.totals-title', 0.3, { opacity: 0 }, "-=0.6")
	.from('.total-l', 0.6, { x:20, opacity: 0, ease: Elastic.easeOut.config(1.1, 0.7) }, "-=0.5")
	.from('.total-r', 0.6, { x:-20, opacity: 0, ease: Elastic.easeOut.config(1.1, 0.7) }, "-=0.6")
	.from('.fup', 0.6, { y: 20, opacity: 0, ease: Elastic.easeOut.config(1.1, 0.7) }, "-=0.5")
	.from('.fperc', 0.6, { y: 20, opacity: 0, ease: Elastic.easeOut.config(1.1, 0.7) }, "-=0.5")
   


/*  ==========================================================================
    SLIDER
    ========================================================================== */  

var $slider = $('#slider'),
    sliderValue = { value: 0 };

$slider.slider({
  range: false,
  min: 0,
  max: 100,
  step: .1,
  start: function() {
    ftl.pause();
  },
  slide: function(event, ui) {
    ftl.progress(ui.value / 100);
  },
  stop: function() {
    ftl.play();
  }
});

ftl.eventCallback("onUpdate", function() {
  sliderValue.value = ftl.progress() * 100;
  $slider.slider(sliderValue);
});
            
          
!
999px
Loading ..................

Console