0

There is slideUp(), slideDown() and slideToggle() function in jQuery. But why not slideLeft(), slideRight(), slideTopLeftCorner(), slideTopRightCorner() and so on functions are added? Is there anyway to do like my assumption.

Bhojendra Rauniyar
  • 83,432
  • 35
  • 168
  • 231

1 Answers1

1

You can use so:

$(this).hide("slide", { direction: "left" }, 1000);
$(this).show("slide", { direction: "left" }, 1000);

Here is duplicate

And here is through plugins

From right bottom to left top corner try so. In another way - you can change options marginLeft and marginTop in function.

jQuery.fn.blindLeftTopOut = function (duration, easing, complete) {
    return this.animate({
        marginLeft: -this.outerWidth(),
        marginTop:  -this.outerHeight()
    }, jQuery.speed(duration, easing, complete));
};
$(element).blindLeftTopOut();
Community
  • 1
  • 1
yAnTar
  • 4,269
  • 9
  • 47
  • 73