Clone repository
git clone git://github.com/sabov/slight.git
To install a packages run:
bower install
If you have problems with this command, please, install Twitter Bower.
You need to initialize slight by running the following code. Note that all config values are optional and will default as specified below.
$('.slides').slight({
animationTime: '.8s',
animationType: 'ease-in-out',
margin: 100,
itemsInRow: 3,
firstSlide: 0,
slideSelector: '.slide'
})
The Slight
class provides a minimal JavaScript API for controlling
navigation:
$('.slides').slight('prev');
$('.slides').slight('next');
$('.slides').slight('toggleViewMode');
Example of slide:
<div class="slides">
<div class="slide">Single Slide</section>
<h2>Title<h2>
</div>
</div>
MIT licensed
Author - Aleksandr Sabov (inspired by Impress and Reveal)