The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › Cleaner method for writing this code?
Hello,
I’m rather new to writing jQuery and was curious if those with experience can suggest a cleaner method for writing the following code. Thank You.
$(‘div’).hide().fadeIn(600).delay(2000).animate({ opacity: 0, top: “100px” }, 600);
Essentially this will fade in a div…delay for 2 seconds…slide down from the top while fading out.