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

Edge Animate coding for mouse position

$
0
0

Hey.

 

I need help working out how to trigger actions in Edge animate in direct relation to the mouse pistion on the page. i know that to formulate the mouse posotion you have to use e.pageX, e.pageY but what i am trying to do is locate pixels on that page (top right, top left, bottom right, bottom left) to trigger the action. I have attached a image of what i am trying to do using clours and shapes. For my front page of my website i have a revolver barrel and each time the mouse hovers over a certain section of my page i want it to 'jerk' to a certain revolved position. Can anyone help me out with the code for this? its frustrating me so much

 

Screen Shot 2015-04-01 at 2.34.17 pm.pngScreen Shot 2015-04-10 at 2.45.32 pm.png


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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