Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Fire events by time?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24020
    Oskar
    Participant

    Hi,

    I’ve got a simple show/hide toggle that works like a charm but what if I wanted to cycle (eg. show/hide) through say three elements.

    Fire the event at element1
    3 secs
    fire callback for element1
    fire event for element2
    3secs
    firecallback for element2
    fire event for element3
    3secs
    firecallback for element3

    and so on.

    How can this be achieved?

    Thanks

    #53444
    eshhy
    Member

    Hope this helps.

    http://plugins.jquery.com/project/dAnimate

    Quote:
    After searching for a way to delay the firing of animations in jquery, I developed this in order to allow me to achieve it, it is inspired by Karl Swedberg’s post http://www.learningjquery.com/2007/01/e … elay-trick It allows you to specify all the normal animation parameters and then an extra parameter with the delay in it.
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.