jquery缓动插件的示例

时间:2012-10-25 08:19:22

标签: javascript jquery jquery-selectors

easeOutExpo: function (x, t, b, c, d) {
        return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
    }

在jquery easin插件的这行代码中,如何在括号中知道x, t, b, c, d的值。我只是想知道有什么在做什么??

1 个答案:

答案 0 :(得分:2)

在脚本的顶部有一行注释掉:

// t: current time, b: begInnIng value, c: change In value, d: duration