Skip to content

yiwei1223/rotare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rotare.js

A Javascript(AMD, node)module realization draw runner

#API 1)loading method achieve the page load performance window.rotare.start(config{}, callback); #Example Usage

window.rotare.start({
    time: 3500,
    direction: 'left',
    categoryOrigin: {
        pointer: {
            direction: 'left',
            loops: 5,
            easing: 'cubic-bezier(0.42,0,0.58,1)',
            selector: '.runner-pointer'
        },
        disc: {
            direction: 'right',
            loops: 5,
            easing: 'cubic-bezier(0.42,0,0.58,1)',
            selector: '.runner-disk'
        }
    },
    animateTo: [20, 60],
    random: [10, 15],
    reset: false
}, function () {
    //do something
});

#Last if you have some prombles when use,you can see the demo files!!!

About

一个转轮抽奖插件

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published