//jQueryx 实现slideLeft 和slideRight方法
$.fn.slideLeftHide = function(speed, callback) {
    this.animate({
        width: "hide",
        paddingLeft: "hide",
        paddingRight: "hide",
        marginLeft: "hide",
        marginRight: "hide"
    }, speed, callback);
};
$.fn.slideRightHide = function(speed, callback) {
    this.animate({
        width: "hide",
        paddingRight: "hide",
        paddingLeft: "hide",
        marginRight: "hide",
        marginLeft: "hide"
    }, speed, callback);
};
$.fn.slideLeftShow = function(speed, callback) {
    this.animate({
        width: "show",
        paddingLeft: "show",
        paddingRight: "show",
        marginLeft: "show",
        marginRight: "show"
    }, speed, callback);
};

//右滑动显示
$.fn.slideRightShow = function(speed, callback) {
    this.animate({
        width: "show",
        paddingRight: "show",
        paddingLeft: "show",
        marginRight: "show",
        marginLeft: "show"
    }, speed, callback);
}

相关文章:

  • 2021-04-09
  • 2022-01-23
  • 2021-11-22
  • 2022-12-23
  • 2021-08-30
  • 2022-12-23
  • 2021-08-22
猜你喜欢
  • 2021-12-19
  • 2021-12-10
  • 2022-03-11
  • 2021-11-18
  • 2021-06-24
  • 2022-12-23
  • 2021-10-15
相关资源
相似解决方案