Forum Discussion
Continually change variable as an object is moved anywhere in window
Continually change variable as an object is moved anywhere in window
- MichaelHinzeCommunity Member
Sounds like an interesting challenge. Can you provide some more details on what exactly you are trying to achieve?
- MathNotermans-9Community Member
With GSAP and the onUpdate functionality of it you can do that.
Here you see a sample.
https://360.articulate.com/review/content/50965c8d-f764-4528-b4a5-a6a4b01a301e/review
Each tick of the animation a variable gets a random number between 1-100. Each second the complete GSAP animation refreshes itself and randomizes all parameters.
Here is the storyline showing how. - MichaelHinzeCommunity Member
Maybe I misread, but I understood "an object is moved anywhere in window" to mean "an object is dragged with the mouse anywhere in window".
- MathNotermans-9Community Member
You are probably right Michael... and its possible to use the onUpdate functionality and GSAP for drag and drop too.
- MichaelHinzeCommunity Member
Good to know, thanks Math!