Forums

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?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #42951
    Rugg
    Participant

    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)
  • The forum ‘JavaScript’ is closed to new topics and replies.