Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Rectangle dilemma

$
0
0

I have these two rectangles, I need that when I hover over the red it changes its size, becoming larger and overlapping the blue. The same for blue, hover over the blue overlay the red.

rectangles.jpg

 

Then created two symbols, bt1 and bt2, blue and red respectively.

In both added the mouseenter action with the following code:

 

sym.$('bt2').css({      'position':'absolute',       'z-index':'99', });

 

which works perfectly

 

but when I put the following code in the bt2 symbol timeline trigger :

 

 

sym.$('bt2').css({      'position':'absolute',       'z-index':'0', });

 

It seems not work.

Capturar.PNG

(the exact position of the trigger in bt2 symbol timeline)

 

Here is the file.

 

is possible that codes in css does not work in triggers?



Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>