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

              
                <div class="accordion-slider">
  <div class="accordion-slider-inner">
    <ul>
      <li>
        <div>
          <a href="#" class="sliderLink">
            <h2>Studio Lighting</h2>
            <p>Lighting<br> Light Modifiers<br> Light Controls<br> Backdrops
            </p>
          </a>
        </div>
      </li>
      <li>
        <div>
          <a href="#" class="sliderLink">
            <h2>Filmmaking Gear</h2>
            <p>LED Lighting<br> Scrim Jim Cine<br> Chroma-Key
            </p>
          </a>
        </div>
      </li>
      <li>
        <div>
          <a href="#" class="sliderLink">
            <h2>Speedlight Modifiers</h2>
            <p>Apollo<br> LunaGrip
              <br> Rapid Box</p>
          </a>
        </div>
      </li>
      <li>
        <div>
          <a href="#" class="sliderLink">
            <h2>Travel Photography</h2>
            <p>Rapid Box<br> Reflectors
              <br> Cases
            </p>
          </a>
        </div>
      </li>
      <li>
        <div>
          <a href="#" class="sliderLink">
            <h2>Newborn Photography</h2>
            <p>Props<br> Backdrops
              <br> Lighting
            </p>
          </a>
        </div>
      </li>
      <li>
        <div>
          <a href="#" class="sliderLink">
            <h2>Photo Enthusiast</h2>
            <p>CFL Lighting<br> Reflectors
              <br> Backdrops
            </p>
          </a>
        </div>
      </li>
	  <li>
        <div>
          <a href="#" class="sliderLink">
            <h2>Photo Enthusiast</h2>
            <p>CFL Lighting<br> Reflectors
              <br> Backdrops
            </p>
          </a>
        </div>
      </li>
	  <li>
        <div>
          <a href="#" class="sliderLink">
            <h2>Photo Enthusiast</h2>
            <p>CFL Lighting<br> Reflectors
              <br> Backdrops
            </p>
          </a>
        </div>
      </li>
	  <li>
        <div>
          <a href="#" class="sliderLink">
            <h2>Photo Enthusiast</h2>
            <p>CFL Lighting<br> Reflectors
              <br> Backdrops
            </p>
          </a>
        </div>
      </li>
	  <li>
        <div>
          <a href="#" class="sliderLink">
            <h2>Photo Enthusiast</h2>
            <p>CFL Lighting<br> Reflectors
              <br> Backdrops
            </p>
          </a>
        </div>
      </li>
    </ul>
  </div>
</div>
              
            
!

CSS

              
                body {
  background-color: black;
  margin: 0;
  padding: 0;
}

*, *:after, *:before{box-sizing: border-box; 
  -webkit-text-size-adjust: none;
    -webkit-font-smoothing: subpixel-antialiased;
    -webkit-font-smoothing: antialiased;
}

.accordion-slider {
  width: 100%;
  height: 658px;
  overflow: hidden;
  margin: 0px auto;
  max-width: 100%;
}
.accordion-slider-inner{
  margin-left: -90px;
  margin-right: -90px;
}
.accordion-slider ul {
  width: 100%;
  display: table;
  table-layout: fixed;
  margin: 0;
  padding: 0;
}

.accordion-slider ul li {
  display: table-cell;
  vertical-align: bottom;
  position: relative;
  width: 16.666%;
  height: 658px;
  transition: all 500ms ease-in-out;

  transform: translate3d(0, 0, 0) skew(-15deg, 0deg);
  overflow: hidden;
}
.accordion-slider ul li::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  background-color: rgba(0,0,0,0.5);
  z-index: 1;
}

.accordion-slider ul li div {
  display: block;
  overflow: hidden;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

  transform: translate3d(0, 0, 0) skew(15deg, 0deg);

  position: absolute;
  top: 0;
  left: -60%;
  width: 230%;
  height: 100%;

  -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
    filter: grayscale(100%);
}

.accordion-slider ul li div a {
  display: block;
  height: 658px;
  width: 100%;
  position: relative;
  z-index: 3;
  vertical-align: bottom;
  padding: 15px 20px;
  box-sizing: border-box;
  color: #fff;
  text-decoration: none;
}

.accordion-slider ul li div a * {
  opacity: 0;
  margin: 0;
  width: 100%;
  text-overflow: ellipsis;
  position: relative;
  z-index: 5;
  white-space: nowrap;
  overflow: hidden;
}
.accordion-slider ul li div a h2 {
  font-family: Montserrat, sans-serif;
  text-overflow: clip;
  font-size: 32px;
  text-transform: uppercase;
  margin-bottom: 2px;
  top: 160px;
}

.accordion-slider ul li div a p {
  top: 160px;
  font-size: 18px;
  padding-left: 1em;
}

.accordion-slider ul li:nth-child(1) > div{ 
  background-image: url("http://dev.fjwestcott.com/media/wysiwyg/home/home_ind_studio_portrait_photography_bob_harrington.jpg"); 
  background-position: top center;
}

.accordion-slider ul li:nth-child(2) > div{ 
  background-image: url("http://dev.fjwestcott.com/media/wysiwyg/home/home_ind_cinema_flex_whale_wars_gavin_garrison.jpg"); 
  background-position: top center;
}

.accordion-slider ul li:nth-child(3) > div{ 
  background-image: url("http://dev.fjwestcott.com/media/wysiwyg/home/home_ind_studio_portrait_photography_bob_harrington_bts.jpg"); 
  background-position: top center;
}

.accordion-slider ul li:nth-child(4) > div{ 
  background-image: url("http://dev.fjwestcott.com/media/wysiwyg/home/home_ind_travel_rapidbox.jpg"); 
    background-position: top center;
}

.accordion-slider ul li:nth-child(5) > div{ 
  background-image: url("http://dev.fjwestcott.com/media/wysiwyg/home/home_ind_enthusiast_portrait_photography_little_studio_basics_lights.jpg"); 
    background-position: top center;
}

.accordion-slider ul li:nth-child(6) > div{ 
  background-image: url("http://dev.fjwestcott.com/media/wysiwyg/home/home_ind_flex_enthusiast_portrait_photography.jpg"); 
    background-position: top center;
}
.accordion-slider ul li:nth-child(7) > div{ 
  background-image: url("http://dev.fjwestcott.com/media/wysiwyg/home/home_ind_studio_portrait_photography_bob_harrington.jpg"); 
    background-position: top center;
}

.accordion-slider ul li:nth-child(8) > div{ 
  background-image: url("http://dev.fjwestcott.com/media/wysiwyg/home/home_ind_cinema_flex_whale_wars_gavin_garrison.jpg"); 
  background-position: top center;
}

.accordion-slider ul li:nth-child(9) > div{ 
  background-image: url("http://dev.fjwestcott.com/media/wysiwyg/home/home_ind_studio_portrait_photography_bob_harrington_bts.jpg"); 
  background-position: top center;
}
.accordion-slider ul li:nth-child(10) > div{ 
  background-image: url("http://dev.fjwestcott.com/media/wysiwyg/home/home_ind_studio_portrait_photography_bob_harrington.jpg"); 
    background-position: top center;
}

.accordion-slider ul li:nth-child(2) > div{ 
  background-image: url("http://dev.fjwestcott.com/media/wysiwyg/home/home_ind_cinema_flex_whale_wars_gavin_garrison.jpg"); 
  background-position: top center;
}

.accordion-slider ul li:nth-child(3) > div{ 
  background-image: url("http://dev.fjwestcott.com/media/wysiwyg/home/home_ind_studio_portrait_photography_bob_harrington_bts.jpg"); 
  background-position: top center;
}

.accordion-slider ul li { background-size: cover; }
.accordion-slider ul.show li,
.accordion-slider ul:hover li { width: 10%; }
.accordion-slider ul.show li.active,
.accordion-slider ul:hover li:hover { width: 90%; }
.accordion-slider ul.show li.active > div,
.accordion-slider ul:hover li:hover > div{ 
  width: 170%; 
  background-position: center; 
  backface-visibility: hidden; 
  padding-left: 70%;

  -webkit-filter: grayscale(0%); /* Safari 6.0 - 9.0 */
    filter: grayscale(0%);
}
.accordion-slider ul:hover li:hover::before{
  background-color: rgba(0,0,0,0);
}

/*.accordion-slider ul:hover li:hover a { background: rgba(0, 0, 0, 0.4); }*/

.accordion-slider ul:hover li:hover a * {
  opacity: 1;
}
 @media screen and (max-width: 680px) {
  
  body { margin: 0; }
  .accordion-slider { height: auto; }

  .accordion-slider ul li,
  .accordion-slider ul li:hover,
  .accordion-slider ul:hover li,
  .accordion-slider ul:hover li:hover {
    position: relative;
    display: table;
    table-layout: fixed;
    width: 100%;
    -webkit-transition: none;
    transition: none;
  }
  .accordion-slider ul li div a * {
    opacity: 1;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console