#127 closed enhancement (fixed)
Add support for custom easing
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | 1.1a |
Component: | effects | Version: | 1.1a |
Keywords: | easing | Cc: | |
Blocked by: | Blocking: |
Description (last modified by )
Add in support for users to add in their own custom easing/step functions.
Attachments (1)
Change History (4)
Changed 17 years ago by
Attachment: | easing.html added |
---|
comment:1 Changed 17 years ago by
John, I've modified fx.js to allow the custom easing in the effects + the callback for every step suggested at http://proj.jquery.com/dev/bugs/bug/26/
Using the animate
function, the syntax is as follows
$('#someselector').animate( { left: 200 }, "slow", { easing: somefunction, step: someotherfunction);
You'll find the diff file and a HTML test at http://scriptia.net/temp/jquery/easing/
Easing functions follows the model described at http://www.robertpenner.com/easing/ in that they receive four parameters (moment in time, beginning value, total change, duration) an return one value.
While testing the simultaneous animation of more than one property, I've found a bug in jQuery.speed
which I thing I've fixed by doing the oldComplete
thing just one time in each call to animate.
Hope these descriptions make sense!
comment:2 Changed 16 years ago by
Description: | modified (diff) |
---|---|
Summary: | Add custom easing to effects → Add support for custom easing |
comment:3 Changed 16 years ago by
Milestone: | → 1.1a |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Version: | → 1.1a |
This is in 1.1.
HTML test