我正在尝试在SuperSized jQuery插件(docs:http://buildinternet.com/project/supersized/docs.html#theme-after)上使用afterAnimation事件,但无法启动它。

代码(样本):

$.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');
    }}
});


任何指导将不胜感激!

最佳答案

原来我离我很近。

在初始化超大尺寸后,您可以执行以下操作:

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

10-08 14:35