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

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.

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

              
                <html>
<body>
  <div class="wrapper">
	<div class="container">
<div class="row">
	<div class="col-xl-12">
			<div class="slider slider-nav">
				<div><h5 class="tabs"><span slide="slide_1">Productivity<br />Feedback</span></h6></div>
				<div><h5 class="tabs"><span slide="slide_2">Visual<br />Checklist</span></h6></div>
				<div><h5 class="tabs"><span slide="slide_3">Service<br />Simplicity</span></h6></div>
				<div><h5 class="tabs"><span slide="slide_4">Safety<br />Reminders</span></h6></div>
				<div><h5 class="tabs"><span slide="slide_5">Dynamic<br />Coaching</span></h6></div>
				<div><h5 class="tabs"><span slide="slide_6">Status<br />Indicators</span></h6></div>
				<div><h5 class="tabs"><span slide="slide_7">Adjustable<br />Performance</span></h6></div>
				<div><h5 class="tabs"><span slide="slide_8">Customizable<br />Display</span></h6></div>
			</div>
			
			<div class="slider slider-single slider__item">
				<div data-index="1"><img src="https://framella.com/bootstrap-menu/slick/images/infolink-gena.png" alt="One"></div>
				<div data-index="2"><img src="https://framella.com/bootstrap-menu/slick/images/infolink-gena.png" alt="Two"></div>
				<div data-index="3"><img src="https://framella.com/bootstrap-menu/slick/images/infolink-gena.png" alt="Three"></div>
				<div data-index="4"><img src="https://framella.com/bootstrap-menu/slick/images/infolink-gena.png" alt="Four"></div>
				<div data-index="5"><img src="https://framella.com/bootstrap-menu/slick/images/infolink-gena.png" alt="Five"></div>
				<div data-index="6"><img src="https://framella.com/bootstrap-menu/slick/images/infolink-gena.png" alt="Six"></div>
				<div data-index="7"><img src="https://framella.com/bootstrap-menu/slick/images/infolink-gena.png" alt="Seven"></div>
				<div data-index="8"><img src="https://framella.com/bootstrap-menu/slick/images/infolink-gena.png" alt="Eight"></div>
			</div>
		</div>
	</div>
</div>
<div class="container">
<div class="row">
	<div class="col-xl-12" style="text-align: center;">
		<section class="content one" data-id="1"> 
  <div><h4 class="fab">Productivity Feedback</h2>Equossit, quam cum fugiat acea excepta tionectates es dolo blatur? Quis es ipsanis ime volorat ibusam accae preratio occab ipsum si ditiis quas molorepro eatissitae consequatur? This is a graphic placeholder <img src="https://framella.com/bootstrap-menu/slick/images/arrow-down.png"> (i.e., "1 of 8") but needs to show carousel screen numbers + functional arrows.<br /><img src="https://framella.com/bootstrap-menu/slick/images/img-pager-1.png"></div>
</section>

<section class="content two" data-id="2"> 
  <div><h4 class="fab">Visual Checklist</h2>Equossit, quam cum fugiat acea excepta tionectates es dolo blatur? Quis es ipsanis ime volorat ibusam accae preratio occab ipsum si ditiis quas molorepro eatissitae consequatur? This is a graphic placeholder <img src="https://framella.com/bootstrap-menu/slick/images/arrow-down.png"> (i.e., "1 of 8") but needs to show carousel screen numbers + functional arrows.<br /><img src="https://framella.com/bootstrap-menu/slick/images/img-pager-2.png"></div>
</section>

<section class="content three" data-id="3"> 
  <div><h4 class="fab">Service Simplicity</h2>Equossit, quam cum fugiat acea excepta tionectates es dolo blatur? Quis es ipsanis ime volorat ibusam accae preratio occab ipsum si ditiis quas molorepro eatissitae consequatur? This is a graphic placeholder <img src="https://framella.com/bootstrap-menu/slick/images/arrow-down.png"> (i.e., "1 of 8") but needs to show carousel screen numbers + functional arrows.<br /><img src="https://framella.com/bootstrap-menu/slick/images/img-pager-3.png"></div>
</section> 

<section class="content four" data-id="4"> 
  <div><h4 class="fab">Safety Reminders</h2>Equossit, quam cum fugiat acea excepta tionectates es dolo blatur? Quis es ipsanis ime volorat ibusam accae preratio occab ipsum si ditiis quas molorepro eatissitae consequatur? This is a graphic placeholder <img src="https://framella.com/bootstrap-menu/slick/images/arrow-down.png"> (i.e., "1 of 8") but needs to show carousel screen numbers + functional arrows.<br /><img src="https://framella.com/bootstrap-menu/slick/images/img-pager-4.png"></div>
</section> 

<section class="content five" data-id="5"> 
  <div><h4 class="fab">Dynamic Coaching</h2>Equossit, quam cum fugiat acea excepta tionectates es dolo blatur? Quis es ipsanis ime volorat ibusam accae preratio occab ipsum si ditiis quas molorepro eatissitae consequatur? This is a graphic placeholder <img src="https://framella.com/bootstrap-menu/slick/images/arrow-down.png"> (i.e., "1 of 8") but needs to show carousel screen numbers + functional arrows.<br /><img src="https://framella.com/bootstrap-menu/slick/images/img-pager-5.png"></div>
</section> 

<section class="content five" data-id="6"> 
  <div><h4 class="fab">Status Indicators</h2>Equossit, quam cum fugiat acea excepta tionectates es dolo blatur? Quis es ipsanis ime volorat ibusam accae preratio occab ipsum si ditiis quas molorepro eatissitae consequatur? This is a graphic placeholder <img src="https://framella.com/bootstrap-menu/slick/images/arrow-down.png"> (i.e., "1 of 8") but needs to show carousel screen numbers + functional arrows.<br /><img src="https://framella.com/bootstrap-menu/slick/images/img-pager-6.png"></div>
</section> 

<section class="content five" data-id="7"> 
  <div><h4 class="fab">Adjustable Performance</h2>Equossit, quam cum fugiat acea excepta tionectates es dolo blatur? Quis es ipsanis ime volorat ibusam accae preratio occab ipsum si ditiis quas molorepro eatissitae consequatur? This is a graphic placeholder <img src="https://framella.com/bootstrap-menu/slick/images/arrow-down.png"> (i.e., "1 of 8") but needs to show carousel screen numbers + functional arrows.<br /><img src="https://framella.com/bootstrap-menu/slick/images/img-pager-7.png"></div>
</section> 

<section class="content five" data-id="8"> 
  <div><h4 class="fab">Customizable Display</h2>Equossit, quam cum fugiat acea excepta tionectates es dolo blatur? Quis es ipsanis ime volorat ibusam accae preratio occab ipsum si ditiis quas molorepro eatissitae consequatur? This is a graphic placeholder <img src="https://framella.com/bootstrap-menu/slick/images/arrow-down.png"> (i.e., "1 of 8") but needs to show carousel screen numbers + functional arrows.<br /><img src="https://framella.com/bootstrap-menu/slick/images/img-pager-8.png"></div>
</section>
</div>
</div>
</div>
</div>
</html
              
            
!

CSS

              
                body {
	background-color: #ffffff;
	font-family: 'myriad-pro', sans-serif;
	font-weight: 300;
	font-style: normal;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #f0f0f0;
}
.wrapper {
	width 0 100%;
	background-color: #303030;
	}
h5.tabs {
    font-family: 'myriad-pro-semi-condensed', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 1rem;
    line-height: 1.2;
    color: #222222;
    text-align:center;
}
h4.fab {
    font-family: 'myriad-pro-semi-condensed', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 2.4rem;
    line-height: 1.2;
    color: #f0f0f0;
    text-align:center;
}
.js .slider-single > div:nth-child(1n+2) { display: none }
.js .slider-single.slick-initialized > div:nth-child(1n+2) { display: block }
h5 {
	background: #f0f0f0;
	font-size: 2.25rem;
	margin: 0;
	padding: 0;
	position: relative;
	text-align: center;
}
.slider-single h5 {
	line-height: 10rem;
}
.slider-nav h5::before {
	content: "";
	display: block;
	vertical-align:middle;
	min-height:70px;
}
.slider-nav h5 span {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.slider-nav .slick-slide { cursor: pointer;
	max-height: 70px;
}
.slick-slide.is-active h5 {
	color: #ffffff;
	background-color: #fb9738;
}
.two, .three, .four, .five {
  display:none;
}
/* SLICK: ARROWS */
.slick-tabs-arrow {
  position: absolute;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  z-index: 100;
  padding: 20px 16px;
  background-color: none;
  color: #000;
}
.slick-tabs-arrow:hover {
  cursor: pointer;
  background-color: #000;
  color: #fff;
}
.slick-tabs-arrow-right {
  right: 0;
  top: 50%;
}
.slick-tabs-arrow-left {
  left: 0;
  top: 50%;
}
.slick-custom-arrow {
  position: absolute;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  z-index: 100;
  padding: 20px 16px;
  background-color: #fff;
  color: #000;
}
.slick-custom-arrow:hover {
  cursor: pointer;
  background-color: #000;
  color: #fff;
}
.slick-custom-arrow-right {
  right: 0;
  top: 50%;
}
.slick-custom-arrow-left {
  left: 0;
  top: 50%;
}
.slick-slide img {
	display: block;
	vertical-align: middle;
	max-width: 100%;
	height: auto;
}
.slider__counter {
  /* position: absolute; */
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
              
            
!

JS

              
                 $('.slider-single').slick({
 	slidesToShow: 1,
 	slidesToScroll: 1,
 	fade: false,
 	adaptiveHeight: true,
 	infinite: true,
	useTransform: true,
 	speed: 400,
 	cssEase: 'cubic-bezier(0.77, 0, 0.18, 1)',
 	nextArrow: '<div class="slick-custom-arrow slick-custom-arrow-right"><i class="fa fa-angle-right"></i></div>',
    prevArrow: '<div class="slick-custom-arrow slick-custom-arrow-left"><i class="fa fa-angle-left"></i></div>',
  });
 $('.slider-nav')
 	.on('init', function(event, slick) {
 		$('.slider-nav .slick-slide.slick-current').addClass('is-active');
 	})
 	.slick({
 		slidesToShow: 7,
 		slidesToScroll: 7,
 		dots: false,
 		focusOnSelect: false,
 		infinite: true,
 		nextArrow: '<div class="slick-tabs-arrow slick-tabs-arrow-right"><i class="fa fa-angle-right"></i></div>',
        prevArrow: '<div class="slick-tabs-arrow slick-tabs-arrow-left"><i class="fa fa-angle-left"></i></div>',
 		responsive: [{
 			breakpoint: 1024,
 			settings: {
 				slidesToShow: 5,
 				slidesToScroll: 5,
 			}
 		}, {
 			breakpoint: 640,
 			settings: {
 				slidesToShow: 4,
 				slidesToScroll: 4,
			}
 		}, {
 			breakpoint: 420,
 			settings: {
 				slidesToShow: 3,
 				slidesToScroll: 3,
		}
 		}]
 	});
 $('.slider-single').on('afterChange', function(event, slick, currentSlide) {
 	$('.slider-nav').slick('slickGoTo', currentSlide);
 	var currrentNavSlideElem = '.slider-nav .slick-slide[data-slick-index="' + currentSlide + '"]';
 	$('.slider-nav .slick-slide.is-active').removeClass('is-active');
 	$(currrentNavSlideElem).addClass('is-active');
 });
 $('.slider-nav').on('click', '.slick-slide', function(event) {
 	event.preventDefault();
 	var goToSingleSlide = $(this).data('slick-index');

 	$('.slider-single').slick('slickGoTo', goToSingleSlide);
 });
 $('.slider-pager > div').click(function() {
	$('.slider').slick('slickGoTo',$(this).index());
});

  //UPDATED
$('.slider-single').on('afterChange', function(event, slick, currentSlide){ 
  $('.content').hide();
  $('.content[data-id=' + (currentSlide + 1) + ']').show();
});

var $slider = $('.slider-single');

if ($slider.length) {
  var currentSlide;
  var slidesCount;
  var sliderCounter = document.createElement('div');
  sliderCounter.classList.add('slider__counter');
  
  var updateSliderCounter = function(slick, currentIndex) {
    currentSlide = slick.slickCurrentSlide() + 1;
    slidesCount = slick.slideCount;
    $(sliderCounter).text(currentSlide + ' of ' +slidesCount)
  };

  $slider.on('init', function(event, slick) {
    $slider.append(sliderCounter);
    updateSliderCounter(slick);
  });

  $slider.on('afterChange', function(event, slick, currentSlide) {
    updateSliderCounter(slick, currentSlide);
  });

  $slider.slick();
}
              
            
!
999px

Console