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="container">
  <nav role='navigation'>
  <div id="menuToggle">

    <input type="checkbox" />
    
    <span></span>
    <span></span>
    <span></span>
    
    <ul id="menu">
      <a href="#"><li>HOME</li></a>
      <a href="#"><li>CONTACT</li></a>
    </ul>
  </div>
</nav>
<div class="slideshow">
  <!-- Item -->
  <div class="item">
    <div class="img-fill">
      <img src="https://upload.wikimedia.org/wikipedia/commons/8/8e/Coloured_figures_of_the_birds_of_the_British_Islands_-_issued_by_Lord_Lilford_%2820110857008%29.jpg" alt="">
      <div class="info">
        <div>
          <h3>First image</h3>
        </div>
      </div>
    </div>
  </div>
  <!-- // Item -->
  <!-- Item -->
  <div class="item">
    <div class="img-fill">
      <img src="https://upload.wikimedia.org/wikipedia/commons/7/7e/Coloured_figures_of_the_birds_of_the_British_Islands_-_issued_by_Lord_Lilford_%2819678165153%29.jpg" alt="">
      <div class="info">
        <div>
          <h3>Second image</h3>
        </div>
      </div>
    </div>
  </div>
  <!-- // Item -->
  <!-- Item -->
  <div class="item">
    <div class="img-fill">
      <img src="https://upload.wikimedia.org/wikipedia/commons/f/fc/Coloured_figures_of_the_birds_of_the_British_Islands_-_issued_by_Lord_Lilford_%2819676550294%29.jpg" alt="">
      <div class="info">
        <div>
          <h3>Third image</h3>
        </div>
      </div>
    </div>
  </div>
  <!-- // Item -->
  <!-- Item -->
  <div class="item">
    <div class="img-fill">
      <img src="https://upload.wikimedia.org/wikipedia/commons/0/04/American_ornithology%3B_or,_The_natural_history_of_the_birds_of_the_United_States_%28Pl._66%29_%288559914540%29.jpg" alt="">
      <div class="info">
        <div>
          <h3>Fourth image</h3>
        </div>
      </div>
    </div>
  </div>
  <!-- // Item -->
</div>
</div>
              
            
!

CSS

              
                .container {
  position: relative;
  top: -25px;
}
/* The Hamburger icon with the menu */
		a {
		  text-decoration: none;
		  color: #232323;
		  -webkit-transition: color 0.3s ease;
		  transition: color 0.3s ease;
		}
		
		a:hover {
		  color: #b6944c;
		}
		
		#menuToggle {
		  display: block;
		  position: relative;
      top: 60px;
		  left: 60px;
		  z-index: 1;
		  -webkit-user-select: none;
		  -moz-user-select: none;
		   -ms-user-select: none;
		       user-select: none;
		}
		
		#menuToggle input {
		  display: block;
		  width: 40px;
		  height: 32px;
		  position: absolute;
		  top: -7px;
		  left: -5px;
		  cursor: pointer;
		  opacity: 0; /* hide this */
		  z-index: 2; /* and place it over the hamburger */
		  -webkit-touch-callout: none;
		}
		
		
		#menuToggle span {
		  display: block;
		  width: 33px;
		  height: 4px;
		  margin-bottom: 5px;
		  position: relative; 
		  background: #b6944c;
		  border-radius: 3px;
		  z-index: 1;
		  
		  -webkit-transform-origin: 4px 0px;
		          transform-origin: 4px 0px;
		  
		  -webkit-transition: background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
		              opacity 0.55s ease,
		              -webkit-transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
		  
		  transition: background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
		              opacity 0.55s ease,
		              -webkit-transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
		  
		  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
		              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
		              opacity 0.55s ease;
		  
		  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
		              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
		              opacity 0.55s ease,
		              -webkit-transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
		}
		
		#menuToggle span:first-child {
		  -webkit-transform-origin: 0% 0%;
		          transform-origin: 0% 0%;
		}
		
		#menuToggle span:nth-last-child(2) {
		  -webkit-transform-origin: 0% 100%;
		          transform-origin: 0% 100%;
		}
		
		/* Transform all the slices of hamburger into a crossmark. */
		#menuToggle input:checked ~ span {
		  opacity: 1;
		  -webkit-transform: rotate(45deg) translate(-2px, -1px);
		          transform: rotate(45deg) translate(-2px, -1px);
		  background: #232323;
		}
		
		/* But let's hide the middle one.*/
		#menuToggle input:checked ~ span:nth-last-child(3)
		{
		  opacity: 0;
		  -webkit-transform: rotate(0deg) scale(0.2, 0.2);
		          transform: rotate(0deg) scale(0.2, 0.2);
		}
		
		/* And the last one should go the other direction */
		#menuToggle input:checked ~ span:nth-last-child(2)
		{
		  opacity: 1;
		  -webkit-transform: rotate(-45deg) translate(0, -1px);
		          transform: rotate(-45deg) translate(0, -1px);
		}
		

		#menu {
		  position: absolute;
		  width: 100px;
		  margin: -60px 0 0 -60px;
		  padding: 40px;
		  padding-top: 100px;
		  background: #cdcdba;
		  list-style-type: none;
		  -webkit-transform-origin: 0% 0%;
		  
		          transform-origin: 0% 0%;
		  -webkit-transform: translate(-100%, 0);
		          transform: translate(-100%, 0);
		  
		  -webkit-transition: -webkit-transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
		  
		  transition: -webkit-transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
		  
		  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
		  
		  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0), -webkit-transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
		}
		
		#menu li{
		  padding: 10px 0;
		  font-size: 1.2rem;
		  font-family: 'Century Gothic', sans-serif;
		}
		

		#menuToggle input:checked ~ ul {
		  -webkit-transform: scale(1.0, 1.0);
		          transform: scale(1.0, 1.0);
		  opacity: 1;
		}

.img-fill{
  width: 100%;
  display: block;
  overflow: hidden;
  position: relative;
  text-align: center
}

.img-fill img {
  height: 100%;
  width: 100%;
  position: relative;
  display: inline-block;
  max-width: none;
}

.blocks-box,
.slick-slider {
  margin: 0;
  padding: 0!important;
}

.slick-slide {
  float: left /* If RTL Make This Right */ ;
  padding: 0;
}

/* ==== Slider Style === */
.slideshow .item .img-fill{
  height:100vh;
  background:rgba(182,148,64,.50);
}

.slideshow .item .img-fill .info{
  position:absolute;
  min-width:100%;
  height:100%;
  right:5%;
  top: -45%;
  line-height:100vh;
  text-align:right;
}

.slideshow .item .info > div{
  display:inline-block!important;
}

.slideshow .NextArrow{
  position:absolute;
  top:50%;
  right:0px;
  width:45px;
  height:45px;
  background:rgba(182,148,64,.60);
  border:0 none;
  margin-top:-22.5px;
  text-align:center;
  font:20px/45px FontAwesome;
  color:#FFF;
  z-index:5;
}

.slideshow .NextArrow:before{content:'\f105';}

.slideshow .PrevArrow{
  position:absolute;
  top:50%;
  left:0px;
  width:45px;
  height:45px;
  background:rgba(182,148,64,.60);
  border:0 none;
  margin-top:-22.5px;
  text-align:center;
  font:20px/45px FontAwesome;
  color:#FFF;
  z-index:5;
}

.slideshow .PrevArrow:before{content:'\f104';}

.slideshow .slick-dots{
  position:absolute;
  height:5px;
  background:rgba(255,255,255,.20);
  bottom:0px;
  width:100%;
  left:0px;
  padding:0px;
  margin:0px;
  list-style-type:none;
}
.slideshow .slick-dots li button{display:none;}
.slideshow .slick-dots li{
  float:left;
  width:0px;
  height:5px;
  background:#B6944C;
  position:absolute;
  left:0px;
  bottom:0px;
}

.slideshow .slick-dots li.slick-active{
  width:100%;
  -webkit-animation:ProgressDots 6s both;
          animation:ProgressDots 6s both;
}

.slideshow .item h3{
  font-family: 'Century Gothic', sans-serif;
  font-size: 1.6rem;
  text-transform:uppercase;
  color:#B6944C;
  -webkit-animation:fadeIn 1s both;
          animation:fadeIn 1s both;
  margin:0;
  padding:0;
}

.slideshow .item.slick-active h3{
  -webkit-animation:fadeIn 1s both 1s;
          animation:fadeIn 1s both 1s;
}


.slideshow .item img{
  -webkit-animation:fadeIn 1s both;
          animation:fadeIn 1s both;
}

.slideshow .item.slick-active img{
  -webkit-animation:fadeIn 1s both;
          animation:fadeIn 1s both;
}


@-webkit-keyframes ProgressDots{from{width:0px;}to{width:100%;}}
@keyframes ProgressDots{from{width:0px;}to{width:100%;}}

/* ==== Slick Slider Css Ruls === */
.slick-slider{position:relative;display:block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-khtml-user-select:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-tap-highlight-color:transparent}
.slick-list{position:relative;display:block;overflow:hidden;margin:0;padding:0}
.slick-list:focus{outline:none}.slick-list.dragging{cursor:hand}
.slick-slider .slick-track,.slick-slider .slick-list{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}
.slick-track{position:relative;top:0;left:0;display:block}
.slick-track:before,.slick-track:after{display:table;content:''}.slick-track:after{clear:both}
.slick-loading .slick-track{visibility:hidden}
.slick-slide{display:none;float:left /* If RTL Make This Right */ ;height:100%;min-height:1px}
.slick-slide.dragging img{pointer-events:none}
.slick-initialized .slick-slide{display:block}
.slick-loading .slick-slide{visibility:hidden}
.slick-vertical .slick-slide{display:block;height:auto;border:1px solid transparent}
              
            
!

JS

              
                $(document).ready(function(){
  
  $(".slideshow").slick({
    autoplay:true,
    autoplaySpeed:10000,
    speed:900,
    slidesToShow:1,
    slidesToScroll:1,
    pauseOnHover:true,
    dots:true,
    pauseOnDotsHover:true,
    cssEase:'linear',
    fade:true,
    draggable:false,
    prevArrow:'<button class="PrevArrow"></button>',
    nextArrow:'<button class="NextArrow"></button>', 
  });
  
})
              
            
!
999px

Console