1 Reply Latest reply on Oct 9, 2012 12:13 PM by TimJaramillo

    Page animation

    dpimp808

      I have some animation on a home page here at:

       

      http://gracelandstudios.com/ranz_ani/index.html

       

      and seems to work fine.  However, when you browse back to the homepage the transitions animate again.  How do I have the animations only animate once per visit to the page to where once a user browses back to the main page it does not keep re animating like it was the first visit to the site?

        • 1. Re: Page animation
          TimJaramillo Level 4

          Hi dpimp!

           

          Are each of your pages a separate Edge Animate file? If so, you can set a cookie on the user's machine, and check that cookie each time your home Edge Animate file loads. If your site is 1 Edge animate file, you can set a var at the initialize function, and check that var each time you show the home page.

           

          See this tutorial on setting/getting cookies (put all the code in the Stage/compositionReady event):

          http://www.w3schools.com/js/js_cookies.asp