I have tried searching for a similar issue and couldn't find one so I thought I would post.
The problem I am having is I am trying to create a mask over an area on the page that fades in and out when the user clicks on a checkbox.
After the page is loaded I do:
getEl('mask').setOpacity(.5);
and once the user clicks a checkbox I would do:
if (e.getTarget().checked) {
getEl('mask').hide(true);
} else {
getEl('mask').show(true);
}
The 'hide' works as it should and fades out, but the 'show' fades in past the opacity level set and continues until opacity == 1 (solid looking DIV).
If there is an opacity set on an object, should the fade in stop when it hits the opacity level for the element?