Mootools叠加淡入

时间:2013-01-25 13:29:50

标签: mootools mootools1.2 mootools-events

你好,你如何在mootools中很好地淡化?

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

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

1 个答案:

答案 0 :(得分:0)

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

//this can't be zero or the mouseenter won't fire
mouseleave: function(){
  this.fade(.001);   
}