<script src="https://rawgit.com/kenwheeler/slick/master/slick/slick.js"></script>
<link rel="stylesheet" href="https://rawgit.com/kenwheeler/slick/master/slick/slick.css">
<link rel="stylesheet" href="https://rawgit.com/kenwheeler/slick/master/slick/slick-theme.css">
<!-- ^
Use the FORK, Luke.
create your own new fiddle test case.
-->
<div class='container'>
<section class="slider">
<div>slide1</div>
<div>slide2</div>
<div>slide3</div>
</section>
</div>
SCSS
$c1: #3a8999;
$c2: #e84a69;
.slider {
width: auto;
margin: 30px 50px 50px;
}
.slick-slide {
background: $c1;
color: white;
padding: 40px 0;
font-size: 30px;
font-family: "Arial", "Helvetica";
text-align: center;
}
.slick-prev:before,
.slick-next:before {
color: black;
}
.slick-dots {
bottom: -30px;
}
.slick-slide:nth-child(odd) {
background: $c2;
}
//Added this here so we could see the default focus states
.slick-dots li button
{
&:focus
{
outline: 2px solid Highlight;
}
}
JavaScript
/**
This fiddle is using the latest version
of Slick (from master) and jQuery.
If your issue occurs in older version or a
specific tag; please use the "External Resources"
section in the sidebar to correct it.
**/
$(".slider").slick({
accessibility: true,
adaptiveHeight: false,
arrows: true,
autoplay: false,
dots: true,
fade: false,
focusOnChange: false,
focusOnSelect: false,
infinite: false,
slidesToScroll: 1,
slidesToShow: 1
});
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.