jQuery Supersized AfterAnimation

本秂侑毒 提交于 2019-12-08 10:00:33

问题


I am trying to use the afterAnimation event on the SuperSized jQuery plugin (docs:http://buildinternet.com/project/supersized/docs.html#theme-after) but cannot get it to fire.

Code (sample):

$.supersized({              
    //Functionality
    slideshow               :   1,
    autoplay                :   1,
    start_slide             :   1,
    stop_loop               :   0,
    random                  :   0,  
    slide_interval          :   3000,
    transition              :   6,
    transition_speed        :   1200,

    // .. removed for clarity

    //Theme Options            
    progress_bar            :   1,  
    mouse_scrub             :   0,
    // This is where i'm trying to call afterAnimation()
    afterAnimation          : function() {
        console.log('blech');
    }}
});

Any guidance would be greatly appreciated!


回答1:


Turns out that I was pretty close.

After the initialization of supersized, you can do this:

theme.afterAnimation = function() {
    console.log('animate');
};


来源:https://stackoverflow.com/questions/19369470/jquery-supersized-afteranimation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!