How to use this easeOutBounce method?

Posted by coure06 on Stack Overflow See other posts from Stack Overflow or by coure06
Published on 2010-06-01T12:16:20Z Indexed on 2010/06/01 12:23 UTC
Read the original article Hit count: 207

Filed under:
|

here is the method for easeOutBounce

easeOutBounce: function (t, b, c, d) {  

if ((t/=d) < (1/2.75)) {
return c*(7.5625*t*t) + b;
} else if (t < (2/2.75)) {
return c*(7.5625*(t-=(1.5/2.75))t + .75) + b;
} else if (t < (2.5/2.75)) {
return c
(7.5625*(t-=(2.25/2.75))t + .9375) + b;
} else {
return c
(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
}
}

Where t: time, b: begining position, c: total change in position, d: duration.
Can any one explain how can i use this method for easeOutBounce value? I mean what i will pass as parameter and how i will use the return value?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about animation