Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquery .show('slow') direction?

Tags:

Is it possible to change direction of $("selector").show('slow') and hide('slow') effects in jQuery?

I can define directions for other effects such as slide and clip, but there's no option for show or hide('slow')

like image 721
Moon Avatar asked Aug 17 '11 20:08

Moon


People also ask

What is show() in jQuery?

jQuery Effect show() Method The show() method shows the hidden, selected elements. Note: show() works on elements hidden with jQuery methods and display:none in CSS (but not visibility:hidden).

How to show visibility hidden in jQuery?

<div id=”visibleContent” style = “visibility:hidden”>the jquery visibility is the effect to show and hide the elements as per user requirement. Step 3: The jquery visibility syntax used on the web page. The (“visibility”, “visible”);attribute place with the selector in the script tag.

How does jQuery slideDown work?

The slideDown() Method in jQuery is used to check the visibility of selected elements or to show the hidden elements. It works on two types of hidden elements: Elements hidden using jQuery methods. Elements hidden using display: none in CSS.

What is slideUp in jQuery?

The slideUp() is an inbuilt method in jQuery which is used to hide the selected elements. Syntax: $(selector). slideUp(speed); Parameter: It accepts an optional parameter “speed” which specifies the speed of the duration of the effect.

How do I Turn Off jQuery show()?

All jQuery effects, including .show(), can be turned off globally by setting jQuery.fx.off = true, which effectively sets the duration to 0. For more information, see jQuery.fx.off.

How do I fix jQuery Slidedown () not working in IE6?

For more information, see jQuery.fx.off . If .slideDown () is called on an unordered list ( <ul>) and its <li> elements have position (relative, absolute, or fixed), the effect may not work properly in IE6 through at least IE9 unless the <ul> has "layout." To remedy the problem, add the position: relative; and zoom: 1; CSS declarations to the ul .

How to show all hidden paragraphs slowly using jQuery?

For more information, see jQuery.fx.off . Animates all hidden paragraphs to show slowly, completing the animation within 600 milliseconds. Show the first div, followed by each next adjacent sibling div in order, with a 200ms animation.

What does show () method do in jQuery?

The show () method shows the hidden, selected elements. Note: show () works on elements hidden with jQuery methods and display:none in CSS (but not visibility:hidden). Tip: To hide elements, look at the hide () method. Optional. Specifies the speed of the show effect.


1 Answers

I can't respond directly to the comments on Norman Joyner's post (not enough rep), but I think you are confused about what 'slow' is. Slow is not an effect like 'slide.' 'Slow' is the speed of the effect. So you should be able to specify

$(this).hide("slide", {direction: "right" }, "slow"); 

You can't put a direction directly on "slow."

EDIT: Oh, I think I know what you are asking. The default effect on "hide" appears to be "blind." According to this - http://docs.jquery.com/UI/Effects/Blind - the only directions you can specify on blind are horizontal and vertical. Horizontal goes from right to left and vertical from bottom to top. If you want the reverse of those, you'll have to use animate().

like image 149
tandrewnichols Avatar answered Sep 20 '22 20:09

tandrewnichols