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

Random Rotation on click

$
0
0

I have a banner I have been working on with three spinners like a slot machine.  Currently I have everything hand animated to rotate the spinners to spin to one of 4 options each.  What I would like is to have a button that triggers the spinners to rotate to a random ( 1 of 4 ) points over the course of 1/2 second 500ns. 

 

Is there a code snippit that will make an object rotate to one of 4 chosen variables?


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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