This project is archived and is in readonly mode.

#291 ✓invalid

"Getting" tween seems to reset tween's options

Reported by ByScripts | August 3rd, 2008 @ 12:05 PM | in 2.0 (closed)

element.set('tween', {duration: 1234});


element.get('tween', {property: 'width'});


Outputs :

>>> 1234
>>> 500

Edit : I forgot to say that the same problem occurs with options.transition

Comments and changes to this ticket

  • Tom Occhino

    Tom Occhino August 4th, 2008 @ 02:05 PM

    • State changed from “new” to “invalid”

    This is the desired behavior. When you pass new options, a new instance is created, by design.

    If you'd like to tween two different properties using the same tween instance, you should use the alternative tween syntax,

    el.tween(prop, start, end);

    without setting the property in options.

Create your profile

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

Shared Ticket Bins

People watching this ticket