【问题标题】:jQuery Supersized AfterAnimationjQuery Supersized AfterAnimation
【发布时间】:2013-10-14 21:17:35
【问题描述】:

我正在尝试在 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');
    }}
});

任何指导将不胜感激!

【问题讨论】:

    标签: javascript jquery supersized


    【解决方案1】:

    原来我已经很接近了。

    在supersized的初始化之后,可以这样做:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多