View Full Version : Animating (fadeout) background color - highlight() method

30 Jan 2011, 10:08 AM
Hi guys,
I want to animate/fadeout a background color (current background white, then change it to green/red and then fadeout back to white). I couldnt find anything similar on sencha api docs, but i did find something on the web (about highlight() method (http://www.lpi.usra.edu/CFIDE/scripts/ajax/ext/docs/output/Ext.Fx.html#highlight)) but I couldn't make it working for me.
Here is the code example they have:

// default: highlight background to yellow

// custom: highlight foreground text to blue for 2 seconds
el.highlight("0000ff", { attr: 'color', duration: 2 });

// common config options shown with default values
el.highlight("ffff9c", {
attr: "background-color", //can be any valid CSS property (attribute) that supports a color value
endColor: (current color) or "ffffff",
easing: 'easeIn',
duration: 1

Thanks in advance,

30 Jan 2011, 5:55 PM
Please do not duplicate your posts in the free and premium help/discussion section. Closing this dup.