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.

            
              <body>
  <canvas id="canvas"></canvas>
  
  
  <div class="staff-list">
    <div class="layer" data-depth="0.02">
    <h1>Nunc feugiat<br>massa</h1>
    </div>
  </div>
  
  <div id="openModal" class="modalbg">
  <div class="dialog">
    <a href="#close" title="Close" class="close">X</a>
  	<h2 style="color:#333;">Hello Hish! ;)</h2>
		<p style="color:#000; line-height: 40px;">You freakin' did it!<br>
		You opened up the freakin' modal window! Now close it.</p>
	</div>
</div>
  
	<nav class="accordion arrows">
    
		<!--<header class="box">
			<label for="acc-close" class="box-title">Accordion menu</label>
		</header>-->
		<input type="radio" name="accordion" id="cb0" />
		<section class="box">
			<label class="box-title cb0" for="cb0">LIGHT SHADES</label>
			<label class="box-close" for="acc-close"></label>
			<div class="box-content">
        
        
      
        <div class="row scrollbar">
          <div class="row__inner">

           <a href="#openModal"> 
            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  100
                </div>
              </div>
            </div>
           </a>

           <a href="#openModal">
            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  110
                </div>
              </div>
            </div>
           </a>

           <a href="#openModal">
            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  120
                </div>
              </div>
            </div>
           </a>

           <a href="#openModal">
            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  130
                </div>
              </div>
            </div>
           </a>

           <a href="#openModal">
            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  140
                </div>
              </div>
            </div>
           </a>

           <a href="#openModal">
            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  150
                </div>
              </div>
            </div>
           </a>

           <a href="#openModal">
            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  160
                </div>
              </div>
            </div>
           </a>

           <a href="#openModal">
            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  170
                </div>
              </div>
            </div>
           </a>

           <a href="#openModal">
            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  180
                </div>
              </div>
            </div>
           </a>

           <a href="#openModal">
            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  190
                </div>
              </div>
            </div>
           </a>

          </div>    
        </div>
      
        
        
      </div>
		</section>
		<input type="radio" name="accordion" id="cb1" />
		<section class="box">
			<label class="box-title cb1" for="cb1">MEDIUM SHADES</label>
			<label class="box-close" for="acc-close"></label>
			<div class="box-content">
      
      
        <div class="row scrollbar">
          <div class="row__inner">

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  100
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  110
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  120
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  130
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  140
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  150
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  160
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  170
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  180
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  190
                </div>
              </div>
            </div>

          </div>    
        </div>
      
      
      </div>
		</section>
		<input type="radio" name="accordion" id="cb2" />
		<section class="box">
			<label class="box-title cb2" for="cb2">TAN SHADES</label>
			<label class="box-close" for="acc-close"></label>
			<div class="box-content">
      
      
      <div class="row scrollbar">
          <div class="row__inner">

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  100
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  110
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  120
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  130
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  140
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  150
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  160
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  170
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  180
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  190
                </div>
              </div>
            </div>

          </div>    
        </div>
      
      
      </div>
		</section>
		<input type="radio" name="accordion" id="cb3" />
		<section class="box">
			<label class="box-title cb3" for="cb3">DEEP SHADES</label>
			<label class="box-close" for="acc-close"></label>
			<div class="box-content">
      
      
      
        <div class="row scrollbar">
          <div class="row__inner">

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  100
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  110
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  120
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  130
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  140
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  150
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  160
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  170
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  180
                </div>
              </div>
            </div>

            <div class="tile">
              <div class="tile__media">
                <img class="tile__img" src="https://s-media-cache-ak0.pinimg.com/originals/cc/60/4b/cc604b1333851d67a89e62ff4cf1fbcb.jpg" alt=""  />
              </div>
              <div class="tile__details">
                <div class="tile__title">
                  190
                </div>
              </div>
            </div>

          </div>    
        </div>
      
      
      
      </div>
		</section>

		<input type="radio" name="accordion" id="acc-close" />
	</nav>
</body>
            
          
!
            
              body {
  background-image: url('https://media.allure.com/photos/57bb9620256a10546425ae9c/master/pass/bob-promo-2016-sensitive-skin-model.jpg');
  background-size:cover;
  
  
	height: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	display: flex;
	/*color: rgba(0,0,0,.87);*/
  font-family: "FB";
  color: #fff;
  text-align:center;
}

.staff-list {
    position:absolute;
  top:0;
  left:0;
  text-align:right;
  width:100%;
  height:100%;
    margin:0 auto;
    display:inline-block;
      }


h1 {
      position:relative;

  padding:30px;
  width:500px;
  top:20%;
  left:60%;
  font-size: 68px;
  letter-spacing:0.25em;
  color:#666;
  text-transform:uppercase;
  font-weight:700;
  text-align:right;
  border:7px solid #666;
}


.accordion {
	margin: auto;
	width: 100%;
  position:absolute;
  bottom:0px;
}
.accordion input {
	display: none;
}
.box {
	position: relative;
	background: white;
    /*	height: 64px;*/
 background: -webkit-linear-gradient(top, rgba(51,51,51,0.9) 0%, rgba(51,51,51,0) 100%);
  background: linear-gradient(to bottom, rgba(51,51,51,0.9) 0%, rgba(51,51,51,0) 100%);
  /*transition-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1);*/
    transition: all .5s;
}
.box::before {
    content: '';
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    /*box-shadow: 0 -1px 0 #e5e5e5,0 0 2px rgba(0,0,0,.10),0 2px 4px rgba(0,0,0,.10);*/
}/*
header.box {
	background: #00BCD4;
	z-index: 100;
	cursor: initial;
	box-shadow: 0 -1px 0 #e5e5e5,0 0 2px -2px rgba(0,0,0,.10),0 2px 4px -4px rgba(0,0,0,.10);
}*/
header .box-title {
	margin: 0;
	font-weight: normal;
	color: white;
	cursor: initial;
}
.box-title {
	color: rgba(255,255,255,.4);
  width: 100%;
	height: 120px;
    letter-spacing: 0.2em;
  	font-size: 32px;
	line-height: 120px;
	padding: 0;
	display: inline-block;
	cursor: pointer;
	-webkit-touch-callout: none;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;
}
.box-title:hover {
  box-shadow: 0 0 0 4px white inset;
  color: rgba(255,255,255,.9);
}

.box-content {
	width: 100%;
	padding: 0px;
	display: none;
/*	height: 64px;*/  
}
.box-close {
	position: absolute;
/*	height: 64px;*/
  height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	cursor: pointer;
	display: none;
}
input:checked + .box {
	height: auto;
	margin: 20px 0;
  background: rgba(0,0,0,.6);
    /*box-shadow: 0 0 10px rgba(0,0,0,.10),0 0 10px rgba(0,0,0,.10);*/
}
/*input:checked + .box .box-title {
	border-bottom: 1px solid rgba(0,0,0,.20);
}*/
input:checked + .box .box-content,
input:checked + .box .box-close {
	display: inline-block;
}/*
.arrows section .box-title {
	padding-left: 44px;
	width: calc(100% - 64px);
}
.arrows section .box-title:before {
	position: absolute;
	display: block;
	content: '\203a';
	font-size: 18pt;
	left: 20px;
	top: -2px;
	transition: transform .15s ease-in-out;
	color: rgba(0,0,0,.40);
}*/
/*
input:checked + section.box .box-title:before {
	transform: rotate(90deg);
}*/

@font-face{font-family:"FB";src:url("//skinv2.harveynichols.com/frontend/enterprise/hndefault/css/../fonts/futura/Futura-Book.eot?#iefix");src:local("Futura Book"),
url("//skinv2.harveynichols.com/frontend/enterprise/hndefault/css/../fonts/futura/Futura-Book.eot?#iefix") format("eot"),
url("//skinv2.harveynichols.com/frontend/enterprise/hndefault/css/../fonts/futura/Futura-Book.woff") format("woff"),
url("//skinv2.harveynichols.com/frontend/enterprise/hndefault/css/../fonts/futura/Futura-Book.ttf") format("truetype"),
url("//skinv2.harveynichols.com/frontend/enterprise/hndefault/css/../fonts/futura/Futura-Book.svg#Futura-Book") format("svg")}

.cb0 {
  background-color: #fccfaf;
}

.cb1 {
  background-color: #e3ac82;
}

.cb2 {
  background-color: #c89266;
}

.cb3 {
  background-color: #a35d2e;
}



/*
CAROUSEL
*/

.row {
overflow-y: hidden;
  overflow-x: scroll;
  width: 100%;
  color: #ffffff;
}
.row__inner {
  -webkit-transition: 200ms -webkit-transform;
  transition: 200ms -webkit-transform;
  transition: 200ms transform;
  transition: 200ms transform, 200ms -webkit-transform;
  font-size: 0;
  white-space: nowrap;
  margin: 40px 0;
  padding-bottom: 20px;
  padding-top: 20px;
}
.tile {
  position: relative;
  display: inline-block;
  width: 260px;
  height: 380px;
  margin-right: 20px;
  font-size: 38px;
  cursor: pointer;
  -webkit-transition: 200ms all;
  transition: 200ms all;
  -webkit-transform-origin: center left;
          transform-origin: center left;
}
.tile__img {
  width: 260px;
  height: 380px;
  -o-object-fit: cover;
     object-fit: cover;
}
.tile__details {
  position: absolute;
    text-align:center;

  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  background: -webkit-linear-gradient(bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  -webkit-transition: 200ms opacity;
  transition: 200ms opacity;
}



.tile:hover .tile__details {
  transition: 200ms all;
  box-shadow: 0 0 0 4px white inset;
  opacity: 0.8;
}
.tile__title {
  position: absolute;
  bottom: 0;
  padding: 10px;
}
.row__inner:hover {
  -webkit-transform: translate3d(-26px, 0, 0);
          transform: translate3d(-26px, 0, 0);
}
.row__inner:hover .tile {
  opacity: 0.2;
}
.row__inner:hover .tile:hover {
  -webkit-transform: scale(1.2);
          transform: scale(1.2);
  opacity: 1;
}
.tile:hover ~ .tile {
  -webkit-transform: translate3d(52px, 0, 0);
          transform: translate3d(52px, 0, 0);
}

/*
CAROUSEL
*/


/*
SCROLLBAR
*/

.scrollbar::-webkit-scrollbar-track
{
	
	background-color: #333;
}

.scrollbar::-webkit-scrollbar
{
	width: 10px;
	background-color: #333;
}

.scrollbar::-webkit-scrollbar-thumb
{
	background-color: #666;	
}


/*
SCROLLBAR
*/


/*
POPUP
*/

.modalbg {
  position: fixed;
  font-family: Arial, Helvetica, sans-serif;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 99999;
  -moz-transition: all 2s ease-out;
  -webkit-transition: all 2s ease-out;
  -o-transition: all 2s ease-out;
  transition: all 2s ease-out;
  -webkit-transition-delay: 0.2s;
  -moz-transition-delay: 0.2s;
  -o-transition-delay: 0.2s;
  -transition-delay: 0.2s;
  display: block;
  pointer-events: none;
}
.modalbg .dialog {
  width: 600px;
  position: relative;
  top: -1000px;
  margin: 10% auto;
  padding: 5px 20px 13px 20px;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  border-radius: 2px;
  background: #fff;

}
.modalbg .dialog .ie7 {
  filter: progid:DXImageTransform.Microsoft.Shadow(color='#000', Direction=135, Strength=3);
}
.modalbg:target {
  display: block;
  pointer-events: auto;
  background: rgba(4, 10, 30, 0.8);
  -moz-transition: all 0.5s ease-out;
  -webkit-transition: all 0.5s ease-out;
  -o-transition: all 0.5s ease-out;
  transition: all 0.5s ease-out;
}
.modalbg:target .dialog {
  top: -20px;
  -moz-transition: all 0.4s ease-out;
  -webkit-transition: all 0.4s ease-out;
  -o-transition: all 0.4s ease-out;
  transition: all 0.4s ease-out;
  -webkit-transition-delay: 0.2s;
  -moz-transition-delay: 0.2s;
  -o-transition-delay: 0.2s;
  -transition-delay: 0.2s;
}
.close {
  color: #333;
  position: absolute;
  right: 14px;
  text-align: center;
  top: 14px;
  width: 14px;
  text-decoration: none;
  -moz-transition: all 0.4s ease-out;
  -webkit-transition: all 0.4s ease-out;
  -o-transition: all 0.4s ease-out;
  transition: all 0.4s ease-out;

}
.close .ie7 {
  filter: progid:DXImageTransform.Microsoft.Shadow(color='#000', Direction=135, Strength=3);
}
.close:hover {
  color: #999;
  -moz-transition: all 0.2s ease-out;
  -webkit-transition: all 0.2s ease-out;
  -o-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}

a {
  color: #FFF;
  text-decoration: none;
}

/*
POPUP
*/

            
          
!
            
              $('.staff-list').parallax();



//Dust Particles Simulation by bionicoz based on
//Basic Particle Animation
//Author: Brandon John-Freso
$(function () {
    var W, H,
        canvas, ctx, //ctx stands for context and is the "curso" of our canvas element.
        particleCount = 700,
        particles = []; //this is an array which will hold our particles Object/Class

    W = window.innerWidth ;
    H = window.innerHeight ;
    
    canvas = $("#canvas").get(0); //this "get(0) will pull the underlying non-jquery wrapped dom element from our selection
    canvas.width = W;
    canvas.height = H;

    ctx = canvas.getContext("2d"); // settng the context to 2d rather than the 3d WEBGL
    ctx.globalCompositeOperation = "lighter";
    console.log(ctx);
    var mouse = {
      x: 0, 
      y: 0,
      rx:0,
      ry:0,
      speed:45,
      delta:0
    };
    


    document.addEventListener('mousemove', function(e){ 
        
        mouse.x = e.clientX || e.pageX; 
        mouse.y = e.clientY || e.pageY;
        mouse.x-=W/2;
        mouse.y-=H/2;
      
    }, false);
  
    function randomNorm(mean, stdev) {
      
      return Math.abs(Math.round((Math.random()*2-1)+(Math.random()*2-1)+(Math.random()*2-1))*stdev)+mean;
    }

    //Setup particle class
    function Particle() {
        //using hsl is easier when we need particles with similar colors
        this.h=parseInt(45);
        this.s=parseInt(40 * Math.random() + 30);
        this.l=parseInt(40 * Math.random() + 30);
        this.a=0.5*Math.random() ;
      
        this.color = "hsla("+ this.h +","+ this.s +"%,"+ this.l +"%,"+(this.a)+")";
        this.shadowcolor = "hsla("+ this.h +","+ this.s +"%,"+ this.l +"%,"+parseFloat(this.a-0.55)+")";
      

        
        this.x = Math.random() * W;
        this.y = Math.random() * H;
        this.direction = {
            "x": -1 + Math.random() * 1,
            "y": -1 + Math.random() * 1
        };
        //this.radius = 9 * ((Math.random()*2-1)+(Math.random()*2-1)+(Math.random()*2-1)+3);
        this.radius = randomNorm(0,4);
        this.scale=0.8*Math.random()+0.5;
        this.rotation=Math.PI/4*Math.random();
      
        this.grad=ctx.createRadialGradient( this.x, this.y, this.radius, this.x, this.y, 0 );
        this.grad.addColorStop(0,this.color);
        this.grad.addColorStop(1,this.shadowcolor);
      
        this.vx = (2 * Math.random() + 4)*.01*this.radius;
        this.vy = (2 * Math.random() + 4)*.01*this.radius;
        
        this.valpha = 0.01*Math.random()-0.02;
        
        this.move = function () {
            this.x += this.vx * this.direction.x ;
            this.y += this.vy * this.direction.y ;
            this.rotation+=this.valpha;
            //this.radius*= Math.abs((this.valpha*0.01+1));

        };
        this.changeDirection = function (axis) {
            this.direction[axis] *= -1;
            this.valpha *= -1;
        };
        this.draw = function () {
            ctx.save();
            ctx.translate(this.x+mouse.rx/-20*this.radius,this.y+mouse.ry/-20*this.radius);  
          ctx.rotate(this.rotation);  
          ctx.scale(1,this.scale);
            
            this.grad=ctx.createRadialGradient( 0, 0, this.radius, 0, 0, 0 );
            this.grad.addColorStop(1,this.color);
            this.grad.addColorStop(0,this.shadowcolor);
            ctx.beginPath();
            ctx.fillStyle = this.grad;
            ctx.arc(0, 0, this.radius, 0, Math.PI * 2, false);
            ctx.fill();
            ctx.restore();

            
        };
        this.boundaryCheck = function () {
            if (this.x >= W*1.2) {
                this.x = W*1.2;
                this.changeDirection("x");
            } else if (this.x <= -W*0.2) {
                this.x = -W*0.2;
                this.changeDirection("x");
            }
            if (this.y >= H*1.2) {
                this.y = H*1.2;
                this.changeDirection("y");
            } else if (this.y <= -H*0.2) {
                this.y = -H*0.2;
                this.changeDirection("y");
            }
        };
    } //end particle class

    function clearCanvas() {
        ctx.clearRect(0, 0, W, H);
    } //end clear canvas

    function createParticles() {
        for (var i = particleCount - 1; i >= 0; i--) {
            p = new Particle();
            particles.push(p);
        }
    } // end createParticles

    function drawParticles() {
        for (var i = particleCount - 1; i >= 0; i--) {
            p = particles[i];
            p.draw();
        }

      
    } //end drawParticles

    function updateParticles() {
        for (var i = particles.length - 1; i >= 0; i--) {
            p = particles[i];
            p.move();
            p.boundaryCheck();

        }
    } //end updateParticles

    function initParticleSystem() {
        createParticles();
        drawParticles();
    }

    function animateParticles() {
        clearCanvas();
        setDelta();
        update()
        drawParticles();
        updateParticles();
        requestAnimationFrame(animateParticles);
    }
  
    initParticleSystem();
    requestAnimationFrame(animateParticles);
  
    function setDelta() {  
      this.now    =   (new Date()).getTime();  
      mouse.delta  =   (this.now-this.then)/1000;  
      this.then   =   this.now;  
    }
    function update() {  
 
    if(isNaN(mouse.delta) || mouse.delta <= 0) { return; }  
 
    var distX   =   mouse.x - (mouse.rx),  
        distY   =   mouse.y - (mouse.ry);  

    if(distX !== 0 && distY !== 0) {          
 
        mouse.rx -=  ((mouse.rx - mouse.x) / mouse.speed); 
        mouse.ry -=  ((mouse.ry - mouse.y) / mouse.speed); 
         
    }   
  
};  
    





});



            
          
!
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