Hello, I am experimenting with creating a similar effect to jQuery's slideUp and slideDown function using [xui](http://xuijs.com).
So far, I have successfully implemented the fade effect:
xui.extend({
fadeOut:function(dur, callback) {
this.tween({opacity:'0',duration:dur}, callback);
},
fadeIn:function(dur, callback) {
this.tween({opacity:'1',duration:dur}, callback);
}
});
This has been a successful endeavor! However, I am now attempting to master the slideUp/Down effect but have faced some challenges.
slideUp:function(dur, callback) {
this.tween({height:'0',duration:dur}, callback);
}
Although this method works on elements without padding and border, I am seeking assistance in solving this issue. Any advice or guidance would be greatly appreciated :)