1.0.0 • Published 6 years ago

uislide v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

demo

jsfiddle's demo

uiwwnw's blog

설명

uiSlide

How to use

var a = new uiSlide(selector);

// option
var a = new uiSlide(selector, {
    ltr:true, // slide direct
    startIndex:0, // slide start index

    loop:false, // infinite loop
    double: false, // Allow fast clicks

    view: 1, // Number of slides shown
    slideNumber: 1, // Number of slides to move at once
    center: false, // When multiple, centered

    touchSafeWidth: 50, //

    auto:true, // auto start 
    autoTime:2000, // auto slide duration
    animationTime:700 // animation duration

    zIndex:true, // current slide z-index higher
    currentClassName:'current', // current slide class name
    fixed:false,
    fixedClassName:'fixed', // fixed 아이템이 current일때 slide class name

    button:true, // button 
    buttonLeftClassName:'leftBtn',
    buttonRightClassName:'rightBtn',

    indicator:true, // indicator
    indicatorClassName:'indicator'
});

// callback, method
a.move(index); // move to slide 
a.autoStart(); // auto start
a.autoStop(); // auto stop
a.index(); // current slide index

AUTHOR

uiwwnw <uiwwnw@icloud.com>

LICENSE

MIT