Skip to content

Instantly share code, notes, and snippets.

@jenhuls
Forked from leadbellydesign/slick-slider-prev-next.css
Last active December 28, 2020 19:30
Show Gist options
  • Save jenhuls/5946f5221b2ad69be91a8c80ac4ac4d8 to your computer and use it in GitHub Desktop.
Save jenhuls/5946f5221b2ad69be91a8c80ac4ac4d8 to your computer and use it in GitHub Desktop.
[Styling Previous and Next buttons in Slick Slider with Font Awesome Icons] #slickjs
/* Must include Font Awesome (here: https://fortawesome.github.io/Font-Awesome/get-started/) for icons to show up */
.slick-prev,
.slick-next {
font-size: 0;
position: absolute;
bottom: 20px;
color: #d5122f;
border: 0;
background: none;
z-index: 1;
}
.slick-prev {
left: 20px;
}
.slick-prev:after {
content: "\f104";
font: 40px/1 'FontAwesome';
}
.slick-next {
right: 20px;
text-align: right;
}
.slick-next:after {
content: "\f105";
font: 40px/1 'FontAwesome';
}
.slick-prev:hover:after,
.slick-next:hover:after {
color: #7e7e7e;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment