View Full Version : [INFOREQ] Ext.core.Element fadeIn and fadeOut don't work correct

25 Jun 2011, 10:26 AM
I tried to use fadeIn and fadeOut without success. (ext 4.0.2a gpl)

fadeOut only accept endOpacity parameter, but in api the correct parameter should be opacity.

fadeIn doesn't works neither with endOpacity nor with opacity parameter

here is the code I used:

myDiv.fadeIn({ opacity: .75, duration: 3000});

26 Jun 2011, 9:04 AM
With this div:

<div id="testDiv" style="width: 400px; height: 400px; background-color: #cccccc; color: #ffffff;">Hello!</div>

The following works as expected:

var el = Ext.get('testDiv');

el.fadeOut({ opacity: .25, duration: 3000});

setTimeout(function() {
el.fadeIn({ opacity: 1, duration: 3000 });
}, 4000);