You can create custom speeds, but they're just aliases. You can't have
functions, just numbers.

$.fx.speeds.custom = 450;

--
Ariel Flesler
http://flesler.blogspot.com

On Feb 23, 7:58 pm, "comslash.com" <comsl...@gmail.com> wrote:
> I was wondering if any one could point me in the right direction for
> creating a custom "speed" plugin that extends the current speeds.  For
> example right now I use slideUp('slow'); .  But I want to use
> something like slideUp('custom'); .  Where "custom" takes the height
> of the object and computes the number of ms to return for slideUp.
>
> ie
>
> slideUp( (($(this).height / 470) * 1000) );
>
> but I would like to write it like ...
>
> slideUp('custom');
>
> Thank You

Reply via email to