@medtrade-kaiser Have you tried doing both?
That is, hide AND collapse the element. Then, when you want to expose it:
-
First expand it
-
Then show it, with fade
I tried that, and it worked for me. I got the benefit of expand / collapse, but I was able to get the fade effect from show. The result is an effect that is equivalent to expand with fade.
export function button11980_mouseIn(event) {
$w("#box1980").expand();
$w("#box1980").show("fade", fadeOptions);
}