0

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
    }
});
Aessandro
  • 5,517
  • 21
  • 66
  • 139

1 Answers1

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

//this can't be zero or the mouseenter won't fire
mouseleave: function(){
  this.fade(.001);   
}
hobberwickey
  • 6,118
  • 4
  • 28
  • 29