Loading ...
Sorry, an error occurred while loading the content.

Animations queue

Expand Messages
  • baldonazionale
    Is there a way to control (by setting pauses) a flow of animations? myAnim[0].animate(); // HOW TO WAIT SOME TIME HERE? myAnim[1].animate(); // HOW TO WAIT
    Message 1 of 3 , Mar 5, 2007
    • 0 Attachment
      Is there a way to control (by setting pauses) a flow of animations?


      myAnim[0].animate();

      // HOW TO WAIT SOME TIME HERE?

      myAnim[1].animate();

      // HOW TO WAIT SOME TIME HERE?

      myAnim[2].animate();
    • dav.glass@yahoo.com
      baldonazionale -- Currently there is no way built into the API s themselves. But you could get this effect by doing something like this. function
      Message 2 of 3 , Mar 5, 2007
      • 0 Attachment
        baldonazionale --

        Currently there is no way built into the API's themselves.

        But you "could" get this effect by doing something like this.

        function delayAnim(num, timer) {
            if (myAnim[num]) {
               if (myAnim[num].timer != 'undefined') {
                  clearTimeout(myAnim[num].timer);
               }
               myAnim[num].timer = setTimeout('myAnim[' + num + '].animate()', timer);
            }
        }
         
        Then instead of this:
        myAnim[0].animate();
        myAnim[1].animate();
        myAnim[2].animate();

        You could do this:
        myAnim[0].onComplete.subscribe(function() { delayAnim(1, 5000); }); //Fire myAnim[1] 5000 ms after myAnim[0] finishes
        myAnim[1].onComplete.subscribe(function() { delayAnim(2, 5000); }); //Fire myAnim[2] 5000 ms after myAnim[1] finishes
        myAnim[0].animate();

        Hope that helps 8-)
        Dav

        Dav Glass
        dav.glass@...
        blog.davglass.com


        + Windows: n. - The most successful computer virus, ever. +
        + A computer without a Microsoft operating system is like a dog
        without bricks tied to its head +
        + A Microsoft Certified Systems Engineer is to computing what a
        McDonalds Certified Food Specialist is to fine cuisine +


        ----- Original Message ----
        From: baldonazionale <baldus@...>
        To: ydn-javascript@yahoogroups.com
        Sent: Monday, March 5, 2007 4:26:42 AM
        Subject: [ydn-javascript] Animations queue

        Is there a way to control (by setting pauses) a flow of animations?


        myAnim[0].animate();

        // HOW TO WAIT SOME TIME HERE?

        myAnim[1].animate();

        // HOW TO WAIT SOME TIME HERE?

        myAnim[2].animate();




        ------------------------ Yahoo! Groups Sponsor --------------------~-->
        Check out the new improvements in Yahoo! Groups email.
        http://us.click.yahoo.com/4It09A/fOaOAA/yQLSAA/edFolB/TM
        --------------------------------------------------------------------~->


        Yahoo! Groups Links

        <*> To visit your group on the web, go to:
            http://groups.yahoo.com/group/ydn-javascript/

        <*> Your email settings:
            Individual Email | Traditional

        <*> To change settings online go to:
            http://groups.yahoo.com/group/ydn-javascript/join
            (Yahoo! ID required)

        <*> To change settings via email:
            mailto:ydn-javascript-digest@yahoogroups.com
            mailto:ydn-javascript-fullfeatured@yahoogroups.com

        <*> To unsubscribe from this group, send an email to:
            ydn-javascript-unsubscribe@yahoogroups.com

        <*> Your use of Yahoo! Groups is subject to:
            http://docs.yahoo.com/info/terms/


      • Nico Giraldi
        Hi, i have a registration form and i would like to create a simple dialog box wizard to populate fields. I wanna show input field, one by one, and i wanna get
        Message 3 of 3 , Mar 5, 2007
        • 0 Attachment
          Hi,
          i have a registration form and i would like to create a simple dialog
          box wizard to populate fields. I wanna show input field, one by one, and
          i wanna get them from the underlying page.How can populate dynamically
          the dialog?
          Best regards
          Nico
        Your message has been successfully submitted and would be delivered to recipients shortly.