The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Fire events by time?

  • # January 22, 2009 at 6:29 am


    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
    firecallback for element2
    fire event for element3
    firecallback for element3

    and so on.

    How can this be achieved?


    # January 22, 2009 at 11:05 pm

    Hope this helps.

    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 … 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)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed