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

Set a variable with an element's position and use it to trigger an event

$
0
0

Hi Edge-Heads,

 

I want to use the position of a draggable object to trigger another object to hide/show.

 

I have tried setting up a variable using jquery .position() and then testing that variable.

 

This is in compositionReady;

 

var pos = ("draggable").position();

 

if (pos >= 850) {

     sym.$("obj1").hide();

     sym.$("obj2").show();

}

 

This does not appear to work...

 

Thanks,

Justin


Viewing all articles
Browse latest Browse all 9897

Trending Articles