Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <article id="lightingAnimation" class="content-box animationStage1">
	<div id="animationBackground1" class="animation-background"></div>
	<div id="animationBackground2" class="animation-background"></div>
	<div id="animationBackground3" class="animation-background"></div>
	<div id="animationBackground4" class="animation-background"></div>
	<div id="animationBackground5" class="animation-background"></div>
	<div id="animationBackground6" class="animation-background"></div>
	<div class="triangle-cutout"></div>
	<div class="triangle-cutout-cover"></div>
	<div class="content-right animation-display">
		<div id="animated-display-inner">
		  <div class="animation-slide">
		    <div class="animation-item main-building">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/main_iso-01.png" alt="">
		    </div>

		    <div class="animation-item street-lights">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/street_lights-01.png" alt="">
		    </div>
		    
		    <div class="animation-item interior-lights">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/bathroom_lights-01.png" alt="">
		    </div>
		    
		    <div class="animation-item interior-lights">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/front_left_lights-01.png" alt="">
		    </div>
		    
		    <div class="animation-item interior-lights">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/front_right_lights-01.png" alt="">
		    </div>
		    
		    <div class="animation-item conference-lights">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/conference_lights-01.png" alt="">
		    </div>
		    
		    <div class="animation-item bathroom-lights">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/bathroom_lights-01.png" alt="">
		    </div>
		    
		    <div class="animation-item interior-light-fixtures">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/light_fixtures-01.png" alt="">
		    </div>
		    
		    <div class="animation-item conference-room">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/conference_brightness-01.png" alt="">
		    </div>
		    
		    <div class="animation-item bathroom">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/bathroom_brightness-01.png" alt="">
		    </div>

		    <div class="animation-item person">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/bathroom_guy-01.png" alt="">
		    </div>

		    <div class="animation-item desk-shadows">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/desk_shadows-01.png" alt="">
		    </div>

		    <div class="animation-item lighter-walls">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/lighter_walls-01.png" alt="">
		    </div>

		    <div class="animation-item sunbeam">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/sunbeam-01.png" alt="">
		    </div>
		    
		    <div class="animation-item building-lights">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/building_lights-01.png" alt="">
		    </div>

		    <div class="animation-item interior-brightness">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/interior_brightness-01.png" alt="">
		    </div>
		    
		    <div class="animation-item exterior-brightness">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/exterior_brightness-01.png" alt="">
		    </div>

		    <div class="animation-item daylight-icons">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/daylight-icons-01.png" alt="">
		    </div>

		    <div class="animation-item dimming-icons">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/dimming-icon-01.png" alt="">
		    </div>

		    <div class="animation-item occupancy-icons">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/occupancy-icon-01.png" alt="">
		    </div>

		    <div class="animation-item car">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/car-01.png" alt="">
		    </div>
		    <div class="animation-item flag">
		      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/flag-01.png" alt="">
		    </div>

		    <div class="info-text animation-1 active-text">
		      <div class="scheduling-text">
		        <i></i>
		        <h6>Set it, forget it</h6>
		      </div>
		      <p>Darkcloud does all the work. We can set the schedules for you and the lights automatically come on and turn off, to save you energy.</p>
		    </div>
		    <div class="info-text animation-2">
		      <div class="daylight-text">
		        <i></i>
		        <h6>Let the sun shine in</h6>
		      </div>
		      <p>Use the sun instead of using energy. Darkcloud’s totally wireless, solar-powered daylight harvester managers your lights in daylit spaces.</p>
		    </div>
		    <div class="indicator-bubble-group">
		      <i class="indicator-bubble daylight front"></i>
		      <i class="indicator-bubble daylight back-left"></i>
		      <i class="indicator-bubble daylight back-right"></i>
		    </div>
		    <div class="info-text animation-3">
		      <div class="occupancy-text">
		        <i></i>
		        <h6>A light presence</h6>
		      </div>
		      <p>Light the spaces you’re in and save in the space you’re not. Lightcloud occupancy and vacancy sensors save you energy wherever you are.</p>
		    </div>
		    <div class="indicator-bubble-group">
		      <i class="indicator-bubble occupancy"></i>
		    </div>
		    <div class="info-text animation-4">
		      <div class="dimming-text">
		        <i></i>
		        <h6>Set the scene</h6>
		      </div>
		      <p>Quickly choose one of your scenes in Darkcloud to instantly adjust the light levels for any area in your building.</p>
		    </div>
		    <div class="indicator-bubble-group">
		      <i class="indicator-bubble dimming"></i>
		    </div>
		    <div class="info-text animation-5">
		      <div class="demand-text">
		        <i></i>
		        <h6>We&rsquo;ve got your back</h6>
		      </div>
		      <p>Get paid to turn your lights off. Darkcloud makes it easy for users to connect with their energy suppliers.</p>
		    </div>
		    <div class="info-text animation-6">
		      <div class="personal-controls-text">
		        <i></i>
		        <h6>You have control</h6>
		      </div>
		      <p>With Darkcloud, your lights are always in your hand. Easily make adjustments using our app on your mobile device.</p>
		    </div>

		    <div id="clock">
	        <h6 id="clock-time"></h6>
		    </div>
		    <div class="outer-animations-container">
		    	<div id="relative-phone">
		        <div class="phone-bg"></div>
		        <div class="phone-inner-container">
	            <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/phone_screens.png" alt="">
		        </div>
		        <div class="phone">
		          <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/136620/phone.png" alt="">
		        </div>
		      </div>
	      </div>
		  </div> <!--Close animation slide -->
		</div> <!--Close animated display inner -->
	</div> <!--Close content right -->
	<div class="content-left animation-navigation">
		<ol id="animationNavigation">
	    <li class="active" id="schedule">
	    	<div class="content">
		      <i id="scheduleIcon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 45 45" enable-background="new 0 0 45 45"><g fill="#fff"><path d="M22.5 45c-12.4 0-22.5-9.9-22.5-22 0-2.3.4-4.6 1.1-6.9.4-1.1 1.6-1.7 2.7-1.3 1.1.4 1.7 1.5 1.4 2.6-.6 1.8-.9 3.7-.9 5.6 0 9.9 8.2 17.9 18.3 17.9 10.1 0 18.3-8 18.3-17.9s-8.3-17.9-18.4-17.9c-4.5 0-8.9 1.6-12.2 4.6-.9.8-2.2.7-3-.2-.8-.8-.7-2.1.1-2.9 4.2-3.6 9.5-5.6 15.1-5.6 12.4 0 22.5 9.8 22.5 22 0 12.1-10.1 22-22.5 22zM20.5 30.9c-.4 0-.8-.1-1.1-.3-.6-.4-1-1-1-1.7v-12.3c0-1.1.9-2.1 2.1-2.1 1.2 0 2.1.9 2.1 2.1v8.9l4.3-2c1.1-.5 2.3 0 2.8 1s0 2.3-1 2.8l-7.4 3.3c-.2.2-.5.3-.8.3zM14.4 12.3h-.4l-6.8-1.3c-1.1-.2-1.9-1.3-1.7-2.4l1.1-6.9c.2-1.1 1.3-1.9 2.5-1.7 1.2.2 1.9 1.2 1.8 2.4l-.8 4.9 4.7.9c1.2.2 1.9 1.3 1.7 2.4-.2 1-1.1 1.7-2.1 1.7z"/></g></svg></i>
		      <span>Schedule It</span>
		    </div>
	    </li>
	    <li id="daylight">
	    	<div class="content">
			     <i id="daylightIcon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" enable-background="new 0 0 40 40"><g fill="#fff"><path d="M20 9.5c-.9 0-1.6-.7-1.6-1.6v-6.3c0-.9.7-1.6 1.6-1.6.9 0 1.6.7 1.6 1.6v6.3c0 .9-.7 1.6-1.6 1.6zM20 40c-.9 0-1.6-.7-1.6-1.6v-6.3c0-.9.7-1.6 1.6-1.6.9 0 1.6.7 1.6 1.6v6.3c0 .9-.7 1.6-1.6 1.6zM11.4 13.1c-.4 0-.8-.2-1.1-.5l-4.4-4.5c-.6-.6-.6-1.7 0-2.3s1.7-.6 2.3 0l4.4 4.4c.6.6.6 1.7 0 2.3-.3.4-.8.6-1.2.6zM33 34.6c-.4 0-.8-.2-1.1-.5l-4.4-4.4c-.6-.6-.6-1.7 0-2.3.6-.6 1.7-.6 2.3 0l4.4 4.4c.6.6.6 1.7 0 2.3-.4.4-.8.5-1.2.5zM7.9 21.6h-6.3c-.9 0-1.6-.7-1.6-1.6s.7-1.6 1.6-1.6h6.3c.9 0 1.6.7 1.6 1.6s-.7 1.6-1.6 1.6zM38.4 21.6h-6.3c-.9 0-1.6-.7-1.6-1.6s.7-1.6 1.6-1.6h6.3c.9 0 1.6.7 1.6 1.6s-.7 1.6-1.6 1.6zM7 34.6c-.4 0-.8-.2-1.1-.5-.6-.6-.6-1.7 0-2.3l4.4-4.4c.6-.6 1.7-.6 2.3 0 .6.6.6 1.7 0 2.3l-4.4 4.4c-.4.4-.8.5-1.2.5zM28.6 13.1c-.4 0-.8-.2-1.1-.5-.6-.6-.6-1.7 0-2.3l4.4-4.4c.6-.6 1.7-.6 2.3 0 .6.6.6 1.7 0 2.3l-4.4 4.4c-.4.3-.8.5-1.2.5zM20.1 28.1c-4.6 0-8.3-3.7-8.3-8.3s3.7-8.3 8.3-8.3c4.6 0 8.3 3.7 8.3 8.3s-3.7 8.3-8.3 8.3zm0-13.4c-2.8 0-5.1 2.3-5.1 5.1s2.3 5.1 5.1 5.1 5.1-2.3 5.1-5.1-2.3-5.1-5.1-5.1z"/></g></svg></i>
			     <span>Night and Day</span>
			   </div>
	    </li>
	    <li id="occupancy">
	    	<div class="content">
		      <i id="occupancyIcon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 41.3 40" enable-background="new 0 0 41.3 40"><g fill="#fff"><circle cx="21.4" cy="5.5" r="2.2"/><path d="M19.5 24.9l.5-2.5 2.8 2.6 1.4 5.5c.1.5.6.9 1.2.9h.3c.6-.2 1-.8.9-1.4l-1.6-5.9c-.1-.2-.2-.4-.4-.6l-4.2-3.8 1.2-6.5 2.3 3.5c.4.5 1.1.7 1.6.3l2.9-1.9c.6-.4.7-1.1.4-1.7-.4-.6-1.1-.7-1.7-.4l-1.9 1.2-3.1-4.7c-.4-.5-1.1-.7-1.7-.3l-5.4 3.5c-.2.2-.4.4-.5.7l-1.5 4.9c0 .7.4 1.4 1 1.5l.3.1c.5 0 1-.3 1.1-.9l1.3-4.4 2.4-1.6-2.1 11.2-4.6 6.8c-.4.5-.2 1.3.3 1.7.2.1.4.2.7.2.4 0 .8-.2 1-.5l4.9-7 .2-.5zM26.8 25c.2.1.4.2.7.2.4 0 .8-.2 1-.5 1.1-1.7 1.7-3.6 1.7-5.6 0-.4 0-.7-.1-1-.1-.7-.7-1.1-1.3-1.1-.7.1-1.1.7-1.1 1.3v.8c0 1.5-.5 3-1.3 4.3-.2.5-.1 1.2.4 1.6zM27.4 5.3c-.6-.3-1.3-.1-1.6.5-.3.6-.1 1.3.5 1.6 4.4 2.3 7.1 6.7 7.1 11.6 0 3.3-1.2 6.5-3.5 8.9-.4.5-.4 1.2.1 1.7.2.2.5.3.8.3.3 0 .6-.1.9-.4 2.7-2.9 4.1-6.6 4.1-10.5 0-5.7-3.2-11-8.4-13.7zM29.3.1c-.6-.3-1.3 0-1.6.6-.3.6 0 1.3.6 1.6 6.4 3.1 10.6 9.7 10.6 16.8 0 4.7-1.7 9.2-4.9 12.6-.4.5-.4 1.2.1 1.7.2.2.5.3.8.3.3 0 .6-.1.9-.4 3.6-3.9 5.6-8.9 5.6-14.2-.1-8.1-4.8-15.5-12.1-19zM13.5 25.2c.3 0 .6-.1.8-.4.5-.5.5-1.2 0-1.7l-12.3-12.3c-.5-.5-1.2-.5-1.7 0s-.5 1.2 0 1.7l12.3 12.3c.3.3.6.4.9.4zM20.7 29.5c-.5-.5-1.2-.5-1.7 0s-.5 1.2 0 1.7l8.5 8.5c.2.2.5.4.8.4s.6-.1.8-.4c.5-.5.5-1.2 0-1.7l-8.4-8.5z"/></g></svg></i>
		      <span>Occupancy</span>
		    </div>
	    </li>
	    <li id="dimming">
	    	<div class="content">
		      <i id="dimmingIcon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 20.1" enable-background="new 0 0 40 20.1"><g fill="#fff"><path d="M38.3 20.1h-36.6c-.8 0-1.5-.6-1.7-1.4-.2-.8.2-1.6 1-2l36.5-16.5c.5-.2 1.2-.2 1.7.1.5.3.8.9.8 1.4v16.7c0 1-.8 1.7-1.7 1.7zm-28.6-3.4h26.8v-12.3l-26.8 12.3zM2.5 18.4l25.8-12.2v12.2z"/></g></svg></i>
		      <span>Dimming</span>
		    </div>
	    </li>
	    <li id="demandResponse">
	    	<div class="content">
		      <i id="demandResponseIcon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" enable-background="new 0 0 40 40"><g fill="#fff"><path d="M10.6 40c-.3 0-.6-.1-.7-.4-.3-.4-.2-1 .2-1.3l16.1-11.8c.4-.3 1-.2 1.3.2.3.4.2 1-.2 1.3l-16.2 11.8c-.2.1-.4.2-.5.2zM28.5 39.5c-.2 0-.4-.1-.5-.2l-15.1-11c-.4-.3-.5-.9-.2-1.3s.9-.5 1.3-.2l15.1 11c.4.3.5.9.2 1.3-.3.3-.6.4-.8.4zM13 27.8c-.3 0-.6-.1-.7-.4-.3-.4-.2-1 .2-1.3l11.9-8.6c.4-.3 1-.2 1.3.2.3.4.2 1-.2 1.3l-11.9 8.6c-.2.2-.4.2-.6.2zM26.7 27.6c-.2 0-.3 0-.5-.1l-12.2-7.7c-.4-.3-.5-.8-.3-1.2.3-.4.8-.5 1.2-.3l12.2 7.7c.4.3.5.8.3 1.2-.1.3-.4.4-.7.4zM14.5 19.9c-.3 0-.5-.1-.7-.3-.3-.4-.3-.9.1-1.3l9.2-7.9c.4-.3.9-.3 1.3.1.3.4.3.9-.1 1.3l-9.2 7.9c-.2.2-.4.2-.6.2zM25.2 19.7c-.2 0-.4-.1-.6-.2l-9-7.5c-.4-.3-.4-.9-.1-1.3.3-.4.9-.4 1.3-.1l9 7.5c.4.3.4.9.1 1.3-.2.2-.4.3-.7.3zM10.6 40h-.2c-.5-.1-.8-.6-.7-1l5.4-30c0-.1 0-.2.1-.2l3.9-7.8c.2-.3.5-.5.8-.5.3 0 .7.2.8.5l3.9 8c0 .1.1.2.1.2l5 29.4c.1.5-.2 1-.7 1-.5.1-1-.2-1-.7l-5-29.3-3.1-6.3-3.1 6-5.4 29.8c0 .6-.4.9-.8.9zM16.3 11.4c-.3 0-.7-.2-.8-.5-.2-.4 0-1 .4-1.2l1.9-.9-7.4-3.8c-.4-.2-.5-.5-.5-.9s.3-.7.6-.8l9-3.3h.6l9.5 3.3c.3.1.6.4.6.8s-.2.7-.5.9l-7.8 3.8 1.7.9c.4.2.6.8.4 1.2-.2.4-.8.6-1.2.4l-3-1.5-3.1 1.5c-.1.1-.3.1-.4.1zm-3.3-7.1l6.8 3.5 7.1-3.5-7.1-2.5-6.8 2.5zM29.1 9.5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.6 1.5-1.5 1.5zm0-2.2c-.3 0-.6.3-.6.6s.3.6.6.6.6-.3.6-.6c.1-.3-.2-.6-.6-.6zM29.3 6.9c-.2 0-.5-.2-.5-.5v-1.8c0-.2.2-.5.5-.5.2 0 .5.2.5.5v1.8c-.1.3-.3.5-.5.5zM10.7 9.5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm0-2.2c-.3 0-.6.3-.6.6s.3.6.6.6.6-.3.6-.6-.3-.6-.6-.6zM10.8 6.9c-.2 0-.5-.2-.5-.5v-1.8c0-.2.2-.5.5-.5.2 0 .5.2.5.5v1.8c-.1.3-.3.5-.5.5zM5.2 13.7c-1.5 0-3.1-.9-4.6-2.6-.2-.2-.2-.5 0-.7s.5-.2.7 0c1.5 1.7 3 2.5 4.5 2.2 2.7-.5 4.3-4.4 4.3-4.4l.1-.2h.3c.4 0 .5.2.9.9.4.8 1.1 2.1 1.8 2.7.2.2.2.5 0 .7-.2.2-.5.2-.7 0-.8-.7-1.5-2-1.9-2.9-.7 1.3-2.2 3.7-4.6 4.2-.2.1-.5.1-.8.1zM34.8 13.7c-.3 0-.6 0-.8-.1-2.3-.5-3.9-2.9-4.6-4.2-.4.8-1.1 2.1-1.9 2.9-.2.2-.5.2-.7 0-.2-.2-.2-.5 0-.7.7-.7 1.4-2 1.8-2.7.4-.7.5-1 .9-.9.2 0 .4.2.4.4 0 0 1.6 3.9 4.3 4.4 1.4.3 2.9-.5 4.5-2.2.2-.2.5-.2.7 0 .2.2.2.5 0 .7-1.5 1.5-3.1 2.4-4.6 2.4z"/></g></svg></i>
		      <span>Utility Management</span>
		    </div>
	    </li>
	    <li id="dimmingControls">
	    	<div class="content">
		      <i id="dimmingControlsIcon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27.8 40" enable-background="new 0 0 27.8 40"><g fill="#fff"><path d="M20.2 23.5h-14.3c-.6 0-1-.4-1.2-.9-.1-.5.2-1.1.7-1.3l14.4-6.5c.4-.2.8-.1 1.1.1.3.2.5.6.5 1v6.5c0 .6-.5 1.1-1.2 1.1zm-8.8-2.4h7.6v-3.5l-7.6 3.5zM6.2 22.3l9-3.5v3.6zM26.3 40h-24.8c-.8 0-1.5-.7-1.5-1.5v-37c0-.8.7-1.5 1.5-1.5h24.8c.8 0 1.5.7 1.5 1.5v37c0 .8-.7 1.5-1.5 1.5zm-23.3-3h21.8v-34h-21.8v34zM1.6 33.8h23.7v4.8h-23.7zM25.2 4.6h-23.7c-.8 0-1.5-.6-1.5-1.5 0-.8.7-1.5 1.5-1.5h23.7c.8 0 1.5.7 1.5 1.5 0 .9-.7 1.5-1.5 1.5z"/><circle cx="14.6" cy="36.9" r="1.1"/></g></svg></i>
		      <span>On the Go</span>
		    </div>
	    </li>
	  </ol>
	</div>
</article>
            
          
!
            
              //Variables and mixin declaration
r-blue       = #008ce6
dkgrey       = #282D32
dkestgrey    = #231F20
mdgrey       = #64696E
ltgrey       = #BEBEBE
accent-color = r-blue

.r-blue {
  color: r-blue !important
}

.ltgrey {
  color: ltgrey !important
}

.mdgrey {
  color: mdgrey !important
}

.dkgrey {
  color: dkgrey !important
}

.white {
  color: white !important
}

//Media queries
break1 = 767px
break2 = 769px
break3 = 1025px
break4 = 1201px
break5 = 1401px
break6 = 1601px

num-columns  = 12
max-width    = 75em
gutter-width = 3.75em

lg-width     = break4 //80em //1280px
md-width     = break3 //64em //1024px
sm-width     = break2 //48em //768px
xs-width     = break1 //30em //480px

//Background iamge (svg with png backup and png@2x backup)
$image-path = '../img'
$fallback-extension = 'png'
$retina-suffix = '@2x'
background-image($name, $size = false) {
  $url = $image-path + '/' + $name + '.svg'
  $urlExt = $image-path + '/' + $name + '.' + $fallback-extension
  $urlRetina = $image-path + '/' + $name + $retina-suffix + '.' + $fallback-extension
  background-image: url($url)
  background-repeat: no-repeat
  if $size {
    background-size: $size
    background-repeat: no-repeat
  }
  .no-svg & {
    background-image: url($urlExt)
    background-repeat: no-repeat
    @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { 
      background-image: url($urlRetina)
      background-repeat: no-repeat
    }
  }
}

chrome-bug() {
  .chrome-fix & {
    -webkit-transform: translateZ(0)
    -webkit-backface-visibility: hidden
    -webkit-perspective: 1000
  }
  .touch.chrome-fix & {
    -webkit-transform: initial
    -webkit-backface-visibility: initial
    -webkit-perspective: initial
  }
 }
 
clearfix() {
  &::before, &::after {
    display: table
    content: ' '
  }
  &::after {
    clear: both
  }
}

font-legibility() {
  text-rendering: optimizeLegibility
  font-smoothing: antialiased
}

hide-text() {
  text-indent: 100%
  white-space: nowrap
  overflow: hidden
}

element-invisible() {
  position: absolute
  top: -999999em
  left: auto
  width: 1px
  height: 1px
  overflow: hidden
}

justify(n) {
  text-align: justify
  text-justify: inter-ideograph
  font-size: 0px
  & > * {
    display: inline-block
    vertical-align: n
    text-align: left
  }
  &:after {
    content: ''
    width: 100%
    display: inline-block
  }
}

justify-flex(n) {
  justify(n)
  display: flex
  justify-content: space-between
  flex-wrap: wrap
  overflow: hidden
}

typography-responsive() {
  font-size: 16px
  @media all and (max-width: break4) {
    font-size: 15.5px
  }
  @media all and (max-width: break3) {
    font-size: 15px
  }
  @media all and (max-width: break2) {
    font-size: 14.5px
  }
}

vertically-aligned() {
  font-size: 0.1px
  &::before {
    height: 100%
    content: ''
    display: inline-block
    vertical-align: middle
  }
  .content {
    display: inline-block
    vertical-align: middle
    width: 99.9%
    typography-responsive()
  }
}

.hidden {
  display: none !important
}

.hidden-text {
  display: block
  hide-text()
}


//Global styling (some not used here)
body {
  position: relative
}

.background-scrollover-content {
  clearfix()
}

.content-box {
  padding: 2em
  position: relative
  display: block
  width: 100%
  float: left
  overflow: hidden
  &.half-split {
    width: 50%
    float: left
    display: block
    square(50%)
    @media screen and (max-width: xs-width) {
      width: 100%
      height: auto
      position: relative
      padding-bottom: 2em
      .overlay {
        position: relative
        display: block
        top: auto
        right: auto
        bottom: auto
        left: auto
        padding: 2em
      }
    }
  }
}

.transitional-text {
  background: white
  color: mdgrey
  text-align: center
  padding: 3em 4em
  h3 {
    brandon-black()
    letter-spacing: 2px
    font-size: 0.875em
    line-height: 1.5
  }
}

.triangle-cutout {
  position: absolute
  top: 0
  width: 0
  height: 0
  border-left: 18px solid transparent
  border-right: 18px solid transparent
  border-top: 18px solid white
  left: 50%
  margin-left: -9px
  z-index: 1
}
.triangle-cutout-cover {
  position: absolute
  top: 0
  width: 0
  height: 0
  border-left: 18px solid transparent
  border-right: 18px solid transparent
  border-top: 18px solid rgba(0,0,0,0.6)
  left: 50%
  margin-left: -9px
  z-index: 2
  opacity: 0
  transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s
}
.sidebar-open .triangle-cutout-cover {
  height: 5em
  opacity: 1
  transition: opacity 0.5s
}

//Actual animation styling
#lightingAnimation {
  width: 100%
  padding: 0
  background: #928896
  min-height: 650px
  height: 100vh
  .content-left, .content-right {
    float: left
    display: block
  }
  .content-left {
    width: 20%
  }
  .content-right {
    width: 80%
    padding: 0 2em
  }
  .animation-display {
    position: absolute
    top: 0
    bottom: 0
    left: 20%
    height: 100%
  }
  .animation-navigation {
    position: absolute
    top: 0
    left: 0
    bottom: 0
    height: 100vh
  }
  #animationNavigation {
    list-style: none
    padding: 0
    height: 100vh
    width: 100%
    margin: 0
    li {
      width: 100%
      height: 16.666666667%
      cursor: pointer
      color: white
      padding: 0 1em
      text-align: center
      display: flex
      justify-content: center
      align-items: center
      position: relative
      background: rgba(40, 45, 50, 0.8)
      transition all 100ms ease-in-out
      &:after {
        left: 100%
        top: 50%
        border: solid transparent
        content: " "
        height: 0
        width: 0
        position: absolute
        pointer-events: none
        border-color: rgba(255, 255, 255, 0)
        border-left-color:rgba(255, 255, 255, 0)
        border-width: 18px
        margin-top: -18px
      }
      &.active {
        background: rgba(255, 255, 255, 0.8)
        &:after {
          border-left-color:rgba(255, 255, 255, 0.8)
        }
        span {
          color: dkestgrey
        }
        i {
          svg path, svg circle, svg polygon {
            fill: accent-color
          }
        }
      }
      span {
        color: white
        text-transform: uppercase
        display: block
        brandon-black()
        letter-spacing: 2px
        font-size: 0.875em
        margin-top: 8px
      }
      i {
        display: inline-block
      }
      .content {
        display inline-block
        vertical-align middle
        width 99.9%
        typography-responsive()
      }
      i#scheduleIcon {
        width: 37px
        height: 37px
      }
      i#daylightIcon {
        width: 40px
        height: 40px
      }
      i#occupancyIcon {
        width: 41.3px
        height: 40px
      }
      i#dimmingIcon {
        width: 40px
        height: 20px
      }
      i#demandResponseIcon {
        width: 40px
        height: 40px
      }
      i#dimmingControlsIcon {
        width: 27.8px
        height: 40px
      }
    }
  }
}

#lightingAnimation {
  #animationNavigation {
    li {
      &:hover {
        background: rgba(255, 255, 255, 0.8)
        &:after {
          border-left-color:rgba(255, 255, 255, 0.8)
        }
        span {
          color: dkestgrey
        }
        i {
          svg path, svg circle, svg polygon {
            fill: accent-color
          }
        }
      }
    }
  }
}


.animation-slide {
  position: relative
  clearfix()
  display: block
  width: 100%
  height: 100%
  .info-text {
    position: absolute
    opacity: 0
    width: 400px
    height: auto
    top: 3em
    left: 4em
    opacity: 0
    transition all 200ms ease-in-out
    h6, p {
      color: white
    }
    h6 {
      brandon()
      margin-bottom: 0
      display: table-cell
      vertical-align: middle
      font-size: 2.25em
      line-height: 1
    }
    p {
      brandon()
      font-size: 1.125em
      font-legibility()
      margin-top: 10px
    }
  }
  @media screen and (max-width: sm-width) {
    .info-text {
      width: 90%
      top: 4em
    }
  }
  #clock {
    position: absolute
    width: 25%
    height: auto
    bottom: 4em
    right: 4em
    h6 {
      color: white
      font-size: 2.25em
      line-height: 1
      brandon()
      margin-bottom: 0
      text-align: right
    }
  }
}

.outer-animations-container {
  position: absolute
  left: 50%
  bottom: -200px
  width: 395px
  height: 702px
  margin-left: -197.5px
  transition all 275ms ease-in-out
  .phone-inner-container {
    position: absolute
    width: 247px
    height: 417px
    overflow: hidden
    left: 79px
    bottom: 142px
    img {
      position: relative
      left: 0
      transition all 275ms ease-in-out
    }
  }
  #relative-phone {
    position: relative
    width: 395px
    height: 702px
    .phone {
      width: 395px
      height: 702px
      position: absolute
    }
    .phone-bg {
      background-color: #282D32
      width: 260px
      height: 350px
      position: absolute
      left: 70px
      bottom: 142px
    }
  }
}
.animation-background {
  width: 100%
  height: 100%
  position: absolute
}
#animationBackground1, #animationBackground2, #animationBackground2, #animationBackground2, #animationBackground2, #animationBackground2 {
  opacity: 0
  transition opacity 205ms ease-in-out
}
#animated-display-inner {
  height: 100%
  width: 100%
  position: relative
}
.animation-item {
  position: absolute
  top: 0
  left: 5%
  bottom: 0
  right: 0
  width: 100%
  height: 100%
  display: block
  vertically-aligned()
  transition all 275ms ease-in-out
  img {
    display inline-block
    vertical-align middle
    width 99.9%
    max-width: 1280px
    typography-responsive()
  }
  &.main-building {
    opacity: 1
  }
  &.street-lights {
    opacity: 0
    @keyframes schedulingTransition1 {
      0%   { opacity: 0.8}
      100% { opacity: 0}
    }
    animation: schedulingTransition1 4s 1
  }
  &.interior-lights {
    opacity: 1
    @keyframes schedulingTransition2 {
      0%   { opacity: 0}
      100% { opacity: 1}
    }
    animation: schedulingTransition2 4s 1
  }
  &.conference-lights {
    opacity: 0
  }
  &.bathroom-lights {
    opacity: 0
  }
  &.interior-light-fixtures {
    opacity: 1
  }
  &.conference-room {
    opacity: 0.5
    @keyframes schedulingTransition3 {
      0%   { opacity: 0.9}
      100% { opacity: 0.5}
    }
    animation: schedulingTransition3 4s 1
  }
  &.bathroom {
    opacity: 0.8
  }
  &.person {
    opacity: 0
    transform: translate3d(7px, 7px, 0px)
  }
  &.desk-shadows {
    opacity: 0
  }
  &.lighter-walls {
    opacity: 0
  }
  &.sunbeam {
    opacity: 0
  }
  &.building-lights {
    opacity: 0
    @keyframes schedulingTransition4 {
      0%   { opacity: 0.4}
      100% { opacity: 0}
    }
    animation: schedulingTransition4 4s 1
  }
  &.interior-brightness {
    opacity: 0
    @keyframes schedulingTransition5 {
      0%   { opacity: 0.5}
      100% { opacity: 0}
    }
    animation: schedulingTransition5 4s 1
  }
  &.exterior-brightness {
    opacity: 0
    @keyframes schedulingTransition6 {
      0%   { opacity: 0.4}
      100% { opacity: 0}
    }
    animation: schedulingTransition6 4s 1
  }
  &.daylight-icons {
    opacity: 0
    transform: translate3d(0px, -5px, 0px)
  }
  &.dimming-icons {
    opacity: 0
    transform: translate3d(0px, -5px, 0px)
  }
  &.occupancy-icons {
    opacity: 0
    transform: translate3d(0px, -5px, 0px)
  }
  &.car {
    opacity: 0
    transform: translate3D(-50px, 20px, 0px)
  }
  &.flag {
    opacity: 1
  }
}

.animation-item {
  @media screen and (max-width: sm-width) {
    left: -12%
    width: 130%
  }
}

.animationStage1 { //Scheduling
  #animationBackground1 {
    background: linear-gradient(0deg, rgba(253, 152, 97, 1) 0%, rgba(180, 139, 136, 1) 25.81%, rgba(44, 116, 148, 1) 100%)
    opacity: 1
  }
  .animation-slide {
    .info-text {
      &.animation-1 {
        opacity: 1
      }
      &.animation-2, &.animation-3, &.animation-4, &.animation-5, &.animation-6 {
        opacity: 0
      }
    }
  }
  .animation-item {
    &.street-lights {
      opacity: 0
      @keyframes schedulingTransition1 {
        0%   { opacity: 0.8}
        100% { opacity: 0}
      }
      animation: schedulingTransition1 4s 1
    }
    &.interior-lights {
      opacity: 1
      @keyframes schedulingTransition2 {
        0%   { opacity: 0}
        100% { opacity: 1}
      }
      animation: schedulingTransition2 4s 1
    }
    &.conference-lights {
      opacity: 0
    }
    &.bathroom-lights {
      opacity: 0
    }
    &.interior-light-fixtures {
      opacity: 1
    }
    &.conference-room {
      opacity: 0.5
      @keyframes schedulingTransition3 {
        0%   { opacity: 0.9}
        100% { opacity: 0.5}
      }
      animation: schedulingTransition3 4s 1
    }
    &.bathroom {
      opacity: 0.8
    }
    &.person {
      opacity: 0
      transform: translate3d(7px, 7px, 0px)
    }
    &.desk-shadows {
      opacity: 0
    }
    &.lighter-walls {
      opacity: 0
    }
    &.sunbeam {
      opacity: 0
    }
    &.building-lights {
      opacity: 0
      @keyframes schedulingTransition4 {
        0%   { opacity: 0.4}
        100% { opacity: 0}
      }
      animation: schedulingTransition4 4s 1
    }
    &.interior-brightness {
      opacity: 0
      @keyframes schedulingTransition5 {
        0%   { opacity: 0.5}
        100% { opacity: 0}
      }
      animation: schedulingTransition5 4s 1
    }
    &.exterior-brightness {
      opacity: 0
      @keyframes schedulingTransition6 {
        0%   { opacity: 0.4}
        100% { opacity: 0}
      }
      animation: schedulingTransition6 4s 1
    }
    &.daylight-icons {
      opacity: 0
      transform: translate3d(0px, -5px, 0px)
    }
    &.dimming-icons {
      opacity: 0
      transform: translate3d(0px, -5px, 0px)
    }
    &.occupancy-icons {
      opacity: 0
      transform: translate3d(0px, -5px, 0px)
    }
    &.car {
      opacity: 0
      transform: translate3D(-50px, 20px, 0px)
    }
  }
  .outer-animations-container {
    bottom: -702px // -702px // -200px
    .phone-inner-container {
      img {
        left: 0
      }
    }
  }
}

.animationStage2 { //Daylight
  #animationBackground2 {
    background: linear-gradient(0deg, rgba(177, 138, 137, 1) 0%, rgba(104, 134, 167, 1) 100%)
    // background: linear-gradient(0deg, rgba(85, 160, 188, 1) 0%, rgba(121, 172, 191, 1) 100%)
    opacity: 1
  }
  .animation-slide {
    .info-text {
      &.animation-2 {
        opacity: 1
      }
      &.animation-1, &.animation-3, &.animation-4, &.animation-5, &.animation-6 {
        opacity: 0
      }
    }
  }
  .animation-item {
    &.street-lights {
      opacity: 0
    }
    &.interior-lights {
      opacity: 0
    }
    &.conference-lights {
      opacity: 0
    }
    &.bathroom-lights {
      opacity: 0
    }
    &.conference-room {
      opacity: 0.5
    }
    &.bathroom {
      opacity: 0.8
    }
    &.person {
      opacity: 0
      transform: translate3d(7px, 7px, 0px)
    }
    &.desk-shadows {
      opacity: 0.4
    }
    &.lighter-walls {
      opacity: 1
    }
    &.sunbeam {
      opacity: 0.8
    }
    &.building-lights {
      opacity: 0
    }
    &.interior-brightness {
      opacity: 0
    }
    &.exterior-brightness {
      opacity: 0
    }
    &.daylight-icons {
      opacity: 1
      transform: translate3d(0px, 0px, 0px)
    }
    &.dimming-icons {
      opacity: 0
      transform: translate3d(0px, -5px, 0px)
    }
    &.occupancy-icons {
      opacity: 0
      transform: translate3d(0px, -5px, 0px)
    }
    &.car {
      opacity: 1
      transform: translate3D(0px, 0px, 0px)
    }
  }
  .outer-animations-container {
    bottom: -702px
    .phone-inner-container {
      img {
        left: 0
      }
    }
  }
}
.animationStage3 { //Occupancy
  #animationBackground3 {
    background: linear-gradient(0deg, rgba(85, 160, 188, 1) 0%, rgba(121, 172, 191, 1) 100%)
    opacity: 1
  }
  .animation-slide {
    .info-text {
      &.animation-3 {
        opacity: 1
      }
      &.animation-1, &.animation-2, &.animation-4, &.animation-5, &.animation-6 {
        opacity: 0
      }
    }
  }
  .animation-item {
    &.street-lights {
      opacity: 0
    }
    &.interior-lights {
      opacity: 0.7
    }
    &.conference-lights {
      opacity: 0
    }
    &.bathroom-lights {
      opacity: 1
    }
    &.conference-room {
      opacity: 0.5
    }
    &.bathroom {
      opacity: 0
    }
    &.person {
      opacity: 1
      transform: translate3d(0px, 0px, 0px)
    }
    &.desk-shadows {
      opacity: 0
    }
    &.lighter-walls {
      opacity: 0
    }
    &.sunbeam {
      opacity: 0
    }
    &.building-lights {
      opacity: 0
    }
    &.interior-brightness {
      opacity: 0.1
    }
    &.exterior-brightness {
      opacity: 0
    }
    &.daylight-icons {
      opacity: 0
      transform: translate3d(0px, -5px, 0px)
    }
    &.dimming-icons {
      opacity: 0
      transform: translate3d(0px, -5px, 0px)
    }
    &.occupancy-icons {
      opacity: 1
      transform: translate3d(0px, 0px, 0px)
    }
    &.car {
      opacity: 1
      transform: translate3D(0px, 0px, 0px)
    }
  }
  .outer-animations-container {
    bottom: -702px
    .phone-inner-container {
      img {
        left: 0
      }
    }
  }
}
.animationStage4 { //Dimming
  #animationBackground4 {
    background: linear-gradient(0deg, rgba(38, 91, 131, 1) 0%, rgba(73, 148, 177, 1) 100%)
    opacity: 1
  }
  .animation-slide {
    .info-text {
      &.animation-4 {
        opacity: 1
      }
      &.animation-1, &.animation-2, &.animation-3, &.animation-5, &.animation-6 {
        opacity: 0
      }
    }
  }
  .animation-item {
    &.street-lights {
      opacity: 0
    }
    &.interior-lights {
      opacity: 1
    }
    &.conference-lights {
      opacity: 1
    }
    &.bathroom-lights {
      opacity: 0
    }
    &.conference-room {
      opacity: 0
    }
    &.bathroom {
      opacity: 0.8
    }
    &.person {
      opacity: 0
      transform: translate3d(7px, 7px, 0px)
    }
    &.desk-shadows {
      opacity: 0
    }
    &.lighter-walls {
      opacity: 0
    }
    &.sunbeam {
      opacity: 0
    }
    &.building-lights {
      opacity: 0
    }
    &.interior-brightness {
      opacity: 0
    }
    &.exterior-brightness {
      opacity: 0
      transform: translate3d(0px, -5px, 0px)
    }
    &.daylight-icons {
      opacity: 0
      transform: translate3d(0px, -5px, 0px)
    }
    &.dimming-icons {
      opacity: 1
      transform: translate3d(0px, 0px, 0px)
    }
    &.occupancy-icons {
      opacity: 0
    }
    &.car {
      opacity: 1
      transform: translate3D(0px, 0px, 0px)
    }
  }
  .outer-animations-container {
    bottom: -702px
    .phone-inner-container {
      img {
        left: 0
      }
    }
  }
}
.animationStage5 { //Demand response
  #animationBackground5 {
    background: linear-gradient(0deg, rgba(33, 71, 113, 1) 0%, rgba(44, 116, 148, 1) 100%)
    opacity: 1
  }
  .animation-slide {
    .info-text {
      &.animation-5 {
        opacity: 1
      }
      &.animation-1, &.animation-2, &.animation-3, &.animation-4, &.animation-6 {
        opacity: 0
      }
    }
  }
  .animation-item {
    &.street-lights {
      opacity: 0
    }
    &.interior-lights {
      opacity: 1
    }
    &.conference-lights {
      opacity: 1
    }
    &.bathroom-lights {
      opacity: 0
    }
    &.conference-room {
      opacity: 0
    }
    &.bathroom {
      opacity: 0.8
    }
    &.person {
      opacity: 0
      transform: translate3d(7px, 7px, 0px)
    }
    &.desk-shadows {
      opacity: 0.4
    }
    &.lighter-walls {
      opacity: 0
    }
    &.sunbeam {
      opacity: 0.8
    }
    &.building-lights {
      opacity: 0
    }
    &.interior-brightness {
      opacity: 0
    }
    &.exterior-brightness {
      opacity: 0.1
    }
    &.daylight-icons {
      opacity: 0
      transform: translate3d(0px, -5px, 0px)
    }
    &.dimming-icons {
      opacity: 0
      transform: translate3d(0px, -5px, 0px)
    }
    &.occupancy-icons {
      opacity: 0
      transform: translate3d(0px, -5px, 0px)
    }
    &.car {
      opacity: 1
      transform: translate3D(0px, 0px, 0px)
    }
  }
  .outer-animations-container {
    bottom: -200px
    .phone-inner-container {
      img {
        left: 0
      }
    }
  }
}
.animationStage6 { //Personal dimming controls
  #animationBackground6 {
    background: linear-gradient(0deg, rgba(122, 130, 93, 1) 0%, rgba(99, 115, 98, 1) 14.16%, rgba(70, 96, 105, 1) 36.05%, rgba(50, 82, 109, 1) 57.85%, rgba(37, 74, 112, 1) 79.3%, rgba(33, 71, 113, 1) 100%)
    opacity: 1
  }
  .animation-slide {
    .info-text {
      &.animation-6 {
        opacity: 1
      }
      &.animation-1, &.animation-2, &.animation-3, &.animation-4, &.animation-5 {
        opacity: 0
      }
    }
  }
  .animation-item {
    &.street-lights {
      opacity: 0.7
    }
    &.interior-lights {
      opacity: 1
    }
    &.conference-lights {
      opacity: 0
    }
    &.bathroom-lights {
      opacity: 0
    }
    &.conference-room {
      opacity: 0.6
    }
    &.bathroom {
      opacity: 0.8
    }
    &.person {
      opacity: 0
      transform: translate3d(7px, 7px, 0px)
    }
    &.desk-shadows {
      opacity: 0
    }
    &.lighter-walls {
      opacity: 0
    }
    &.sunbeam {
      opacity: 0
    }
    &.building-lights {
      opacity: 0.2
    }
    &.interior-brightness {
      opacity: 0.1
    }
    &.exterior-brightness {
      opacity: 0.2
    }
    &.daylight-icons {
      opacity: 0
      transform: translate3d(0px, -5px, 0px)
    }
    &.dimming-icons {
      opacity: 0
      transform: translate3d(0px, -5px, 0px)
    }
    &.occupancy-icons {
      opacity: 0
      transform: translate3d(0px, -5px, 0px)
    }
    &.car {
      opacity: 0
      transform: translate3D(-50px, 20px, 0px)
    }
  }
  .outer-animations-container {
    bottom: -200px
    .phone-inner-container {
      img {
        left: -234px
      }
    }
  }
}

#phoneAnimationReplacement {
  #phoneAnimationNavigation {
    list-style: none
    padding: 0
    height: 101%
    width: 100%
    margin: 0
    li {
      square(50%)
      padding-bottom: 40%
      float: left
      color: white
      text-align: center
      display: flex
      justify-content: center
      align-items: center
      position: relative
      background: rgba(40, 45, 50, 0.8)
      transition all 100ms ease-in
      border: none
      overflow: hidden
      @media only screen and (min-device-width : 320px) and (max-device-width : 667px) and (orientation : landscape) {
        padding-bottom: 23%
      }
      &.active {
        background: rgba(255, 255, 255, 0.8)
        &:after {
          border-left-color:rgba(255, 255, 255, 0.8)
        }
        span {
          color: dkestgrey
        }
        i {
          svg path, svg circle, svg polygon {
            fill: accent-color
          }
        }
      }
      span {
        color: white
        text-transform: uppercase
        display: block
        brandon-black()
        letter-spacing: 2px
        font-size: 0.875em
      }
      i {
        display: inline-block
      }
      .content {
        display inline-block
        vertical-align middle
        width 99.9%
        typography-responsive()
      }
      i#scheduleIcon {
        width: 45px
        height: 45px
      }
      i#daylightIcon {
        width: 40px
        height: 40px
      }
      i#occupancyIcon {
        width: 41.3px
        height: 40px
      }
      i#dimmingIcon {
        width: 40px
        height: 20px
      }
      i#demandResponseIcon {
        width: 40px
        height: 40px
      }
      i#dimmingControlsIcon {
        width: 27.8px
        height: 40px
      }
    }
    li {
      .content {
        padding-left: 1em
        padding-right: 1em
      }
    }
    li.description-text {
      width: 100%
      display: none
      padding: 1em
      height: auto
      &.active {
        display: block
      }
      .individual-descriptor-text {
        display: none
        &.active {
          display: block
        }
        h6, p {
          color: dkestgrey
          text-align: left
        }
        h6 {
          font-size: 1.5em
          margin: 0
        }
        p {
          font-size: 1em
        }
      }
    }
  }
}
            
          
!
            
              function setClock(time) {
  clock.innerHTML = time;
}

function animationNavigation(setTime, thisClass, el) {
  var fullClassList = ['animationStage1', 'animationStage2', 'animationStage3', 'animationStage4', 'animationStage5', 'animationStage6'];
  var thisClassIndex = fullClassList.indexOf(thisClass);
  if (thisClassIndex > -1) {
    fullClassList.splice(thisClassIndex, 1);
  }

  setClock(setTime);

  var clickSiblings = Array.prototype.filter.call(el.parentNode.children, function(child) {
    return child !== el;
  });
  clickSiblings.forEach(function(sib) {
    classie.remove(sib, 'active');
  });
  classie.add(el, 'active');

  if (!classie.has(animationControl, thisClass)) {
    classie.add(animationControl, thisClass);
  }
  classie.remove(animationControl, fullClassList[0]);
  classie.remove(animationControl, fullClassList[1]);
  classie.remove(animationControl, fullClassList[2]);
  classie.remove(animationControl, fullClassList[3]);
  classie.remove(animationControl, fullClassList[4]);
}

var clock = document.getElementById('clock-time');
if (clock) {
  setClock('7:00am');
}

//Animation
var animationControl = document.getElementById('lightingAnimation');
if (animationControl) {
  document.getElementById('schedule').addEventListener('click', function(e) {
    var el = this;
    animationNavigation('7:00am', 'animationStage1', el);
  });
  document.getElementById('daylight').addEventListener('click', function(e) {
    var el = this;
    animationNavigation('9:00am', 'animationStage2', el);
  });
  document.getElementById('occupancy').addEventListener('click', function(e) {
    var el = this;
    animationNavigation('11:00am', 'animationStage3', el);
  });
  document.getElementById('dimming').addEventListener('click', function(e) {
    var el = this;
    animationNavigation('1:00pm', 'animationStage4', el);
  });
  document.getElementById('demandResponse').addEventListener('click', function(e) {
    var el = this;
    animationNavigation('3:00pm', 'animationStage5', el);
  });
  document.getElementById('dimmingControls').addEventListener('click', function(e) {
    var el = this;
    animationNavigation('5:00pm', 'animationStage6', el);
  });
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console