Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 621 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 621 Bytes

Flickity counter

_Enable slide counter for Flickity

Install

Add counter.css to your stylesheets and counter.js to your scripts.

Usage

Enable counter by setting counter: true in Flickity options.

// jQuery
var $carousel = $('.carousel').flickity({
  counter: true,
});
// vanilla JS
var flkty = $('.carousel').flickity({
  counter: true,
});
<!-- HTML -->
<div class="carousel" data-flickity='{ "counter": true }'>
  ...
</div>

Based on Flickity Fullscreen from David DeSandro