This project is archived and is in readonly mode.

#153 ✓resolved
scornflakes

Docs: Fx.Tween from,to

Reported by scornflakes | June 22nd, 2008 @ 10:40 PM | in 1.2.1

In the docs the [ ] are placed counter-intuitively:


Syntax:

myFx.start([property], from[, to]);
Arguments:

property - (string, if not in options) The css property to tween.
Omit this if you use the property option.
from - (mixed) The starting CSS property value for the effect. If
only one argument is provided, this value will be used as the target
value.
to - (mixed, optional) The target CSS property value for the effect.

should be


Syntax:

myFx.start([property][, from], to);
Arguments:

property - (string, if not in options) The css property to tween.
Omit this if you use the property option.
from - (mixed) The starting CSS property value for the effect.
to - (mixed, optional) The target CSS property value for the effect.

I can see the reasoning behind the current solution, but it is like a double negation and therefore counter-intuitive/requires two re-reads.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Tags

Pages