Ticket #2529811 (accepted enhancement)

Reporter


Satyam
Opened: 04/13/10
Last modified: 04/28/11
Status: accepted
Type: enhancement

Owner


Matt Sweeney
Target Release: FUTURE
Priority: P3 (normal)
Summary: Add a template attribute to animate complex properties
Description:

Add a template or format attribute for settings that have multiple value parts such as background-position so that I could specify an animation attribute such as:

{'background-position' : {
from: 0,
to: 100,
template: 'center {value}px'
}}

and the 'tween' values will be added to the template. Alternatively, the template or format attribute might receive a reference to a function that would receive the value and would return the value
to be set.

I guess that even a 'prefix' attribute would do:

{'background-position' : {
from: 0,
to: 100,
unit: 'px',
prefix: 'center '
}}

and it would probably far easier to add.

However, the template: {function reference} would provide the most flexibility.

Type: enhancement Observed in Version: 3.3.0
Component: Animation Severity: S3 (normal)
Assigned To: Matt Sweeney Target Release: FUTURE
Location: Library Code Priority: P3 (normal)
Tags: Relates To:
Browsers: N/A
URL:
Test Information:

Change History

Matt Sweeney

YUI Developer

Posted: 04/14/10
  • milestone changed to 2.9.0
  • status changed from new to accepted

Matt Sweeney

YUI Developer

Posted: 01/12/11

Matt Sweeney

YUI Developer

Posted: 01/13/11
  • status changed from assigned to accepted

George

YUI Developer

Posted: 02/15/11
  • component changed from None to Animation
  • owner changed from Matt Sweeney to Matt Sweeney
  • status changed from accepted to assigned
  • version changed to 3.3.0

Matt Sweeney

YUI Developer

Posted: 04/28/11
  • milestone changed to FUTURE
  • status changed from assigned to accepted