سؤال

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
    }
});

لا يوجد حل صحيح

نصائح أخرى

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

//this can't be zero or the mouseenter won't fire
mouseleave: function(){
  this.fade(.001);   
}
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top