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.
Asked
Active
Viewed 1,490 times
0

Bhojendra Rauniyar
- 83,432
- 35
- 168
- 231
1 Answers
1
You can use so:
$(this).hide("slide", { direction: "left" }, 1000);
$(this).show("slide", { direction: "left" }, 1000);
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();
-
and what about slideTopRightCorner() – Bhojendra Rauniyar Jun 23 '13 at 08:35
-
@c-link depending on your CSS, but usually achieved by default with `.hide(800)` – Roko C. Buljan Jun 23 '13 at 08:38