Forums

Give help. Get help.

  • # February 24, 2013 at 11:54 pm

    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.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag