vendredi 2 janvier 2015

Tone down jQuery Easing's bounce


I'm using the jQuery Easing plugin and using the bounce easing effect. I like it, but it's so incredibly drastic. I need to tone it down (probably removing a bounce and making the curves less drastic.


I've found this post, but I'm actually not a math major... Can someone help me out in English? I don't even need to fully grasp it, I'd be okay with someone simply providing a function for me.


I know I'm supposed to paste code I've tried, but I don't even know what to try, so I suppose I'll post the easing function provided with the jQuery Easing plugin.



easeOutBounce: function (x, 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;
}
}




Aucun commentaire:

Enregistrer un commentaire