Solved

Jquery .show()

Posted on 2013-02-07
2
180 Views
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.

Thanks
0
Comment
Question by:Al4ddin2
2 Comments
 
LVL 5

Accepted Solution

by:
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:

jQuery.fx.off = 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.
0
 
LVL 1

Assisted Solution

by:StarbucksDrinker
StarbucksDrinker earned 250 total points
ID: 38868476
$(floatingElem).show(0);

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

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
get radio button vale in array 7 44
Safari SVG Image Problem 1 41
Why is this panel heading creating extra space 2 37
bootstrap footer centering and expand problems 7 30
Requirements JQuery 1.6+ HTML CSS Introduction This article was inspired by an EE question (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28372511.html) on how to make a page show some balloons animate up a page…
Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

861 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now