Jquery .show()

Posted on 2013-02-07
Last Modified: 2013-02-12
$(floatingElem).show(function () {
	$(document).on('click', createCloseMask);

Open in new window

How do I get this script to not animate and just show?

At the moment it animates but I just want it to appear.

Question by:Al4ddin2

Accepted Solution

Pyromanci earned 250 total points
ID: 38865821
Set the duration

$(floatingElem).show(0, function () {
	$(document).on('click', createCloseMask);

Open in new window

you can also do: = true

Open in new window

but that will globally set all duration for the jquery effects to be 0. So any place you want animation you would have to set the durations. So it comes down to what you need more of. Animations or no animations.

Assisted Solution

StarbucksDrinker earned 250 total points
ID: 38868476

Open in new window

will do it according to the JQuery docs.  If you need the inner function, then use
$(floatingElem).show(0, function () {	$(document).on('click', createCloseMask);

Open in new window


Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction HyperText Transfer Protocol ( or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question