Question

Hi how do you make a div fade in nicely in mootools?

var el = $$('div.img_wrapper');

el.addEvents({
    mouseenter: function(){
        fade in div
    },
    mouseleave: function(){
        fade out div
    }
});

No correct solution

OTHER TIPS

mouseenter: function(){
  this.fade('in');
}, 

//this can't be zero or the mouseenter won't fire
mouseleave: function(){
  this.fade(.001);   
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top