1 Reply Latest reply on Sep 27, 2012 2:48 PM by TimJaramillo

    Can the order/arrangement be charged during animation

    Jasonjkd82

      What I mean is, if an object is at the back when I mouse over it, it comes to the front then when I mouse out it goes back to the back? I am trying to make something like this http://codecanyon.net/item/dynamic-accordion-banner-rotator/full_screen_preview/628296

       

      or somethng like this http://codecanyon.net/item/fancyfolio-jquery-portfolio-gallery/full_screen_preview/1595481

        • 1. Re: Can the order/arrangement be charged during animation
          TimJaramillo Level 4

          Hey Jason, you can set the z-index of an object in Edge, to change the display order.

           

          In the example below, "your_object_name" is the bottom object that you want to move to front/back. Start with the "your_object_name" object below the other object.

           

          In the "mouseover" event of your object, add this:

          sym.$("your_object_name").css("z-index", "100");


          In the "mouseout" event of your object, add this:

          sym.$("your_object_name").css("z-index", "0");