/slight

Javascript presentation engine

Primary LanguageJavaScript

Slight - javascript presentation engine

Installation

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.

Initialization

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'
})

API

The Slight class provides a minimal JavaScript API for controlling navigation:

$('.slides').slight('prev');
$('.slides').slight('next');
$('.slides').slight('toggleViewMode');

Markup

Example of slide:

<div class="slides">
    <div class="slide">Single Slide</section>
        <h2>Title<h2>
    </div>
</div>

License

MIT licensed

Author - Aleksandr Sabov (inspired by Impress and Reveal)