Skip to content

sabov/slight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Javascript presentation engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published