I see jQuery's easing functions at https://github.com/danro/jquery-easing/blob/master/jquery.easing.js.
I see each function takes 5 paramaters but I can't figure out what all of them are and how they tie into a call to animate
.
x
- ????t
- current time -new Date()
???b
- the beginning valuec
- change in value ???d
- duration
For example, I would call a function like:
$("div").width(50).animate({
width: 150px
}, 2000);
Would this call match up like so:
x
- ????t
- the current time at each call to updateb
- 50pxc
- 100pxd
- 2000
Reference : link
So
x
is equal tonull
andt
is expressed in milliseconds since the start of the animationI think you have right for the others.
You can see this post for more comprehension