Mootools FX.Tween: Fade Then Hide An Element
Posted by jovaniwayne on January 21, 2010
0 comments
Whenever you come into a point where you need to fade an element then eventually hide it, you need to use a chain. The normal way for a fade is: $(‘myElement’).fade(‘out’); //Fades “myElement” out. $(‘myElement’).fade(0.7); //Fades “myElement” to 70% opacity. And the normal way for setting an element to be Invisible is: $(‘MyElement’).setStyle(‘display’,’none’); And if [...]



