[jQuery] Easing and callbacks

[jQuery] Easing and callbacks


Hi All,
Just a quick note to clear up an issue people seem to have had with my
easing plugin:
http://gsgd.co.uk/sandbox/jquery.easing.php
It is possible to use callbacks with easing, you just need to get the
syntax right. There's two options, and mixing them up doesn't work.
$(element).slideUp(1000, method, callback});
$(element).slideUp({duration: 1000, easing: method, complete:
callback});
These are functionally identical, however the following won't work:
$(element).slideUp({duration: 1000, easing: method}, callback});
Hope that clears up any issues.
I've also included another examply of easing in action:
http://gsgd.co.uk/sandbox/jquery.bouncer.php
Cheers,
George.