Fork me on GitHub

Touch enabled minimalistic slider written in vanilla JavaScript

Download Here

Single element with jQuery

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

        'use strict';

        var $elements = $('.js_simple');

        $(function() {
            $elements.lory({
                infinite: 1
            });

            $elements.data().lory.slideTo(4);
            // $elements.data().lory.prev();
            // $elements.data().lory.next();
        });