End position of animation?
Nov 06, 2020
By
Michelle M
Hello community,
Is there any way to get exact coordinates or duplicate the end position of an object after an animation?
I want to start the next slide with the objects in the exact position they are in at the end of the animation attached - not seeing any way to do this beyond a lot of manual tweaking and previewing - very time consuming particularly with multiple obkects.
Any advice appreciated,
Michelle
5 Replies
Yes, that is possible. Mockup up a sample...
Partly working..showing here. I need to fix absolute position values for relative values so it always get the proper x/y values. When that works i add a sample... now only showing it works...
As said i got a setup working now that checks whether you publish in Classic Player or Modern Player mode. Based on that getting the x/y position is somewhat different for the player.
Check that here...
Modern Player version
https://360.articulate.com/review/content/3ec783f4-cb1e-4843-9aeb-a98abf1b1684/review
Classic Player version
https://360.articulate.com/review/content/adedaa1a-ce3f-4b87-9092-e4aeeb597c01/review
Clicking the 'move to spots' button triggers a animation that moves the candy to the endposition of the 3 spots. You can drag the green spots around to change the positions. When clicking the button the candy moves to the correct spot and the variables are updated.
The biggest issue, especially because the Classic and Modern player behave somewhat differently, was the x/y translation of the player ( Storyline slide ) on a webpage of a given size.
Figured that out and now on any device ( testing needed for that ;-) the x/y position of elements should be good. To get and set for animation.
Attaching my storyline sample.
Wow Math, this story is very impressive!
So are the spot_X and spot_y variables being updated by the javascript code that's in your story?
This is probably not what I was looking for to solve my exact issue, but very impressive nonetheless.
Yes, end position of any element including those moved by motion paths can be gathered using Javascript this way.
This discussion is closed. You can start a new discussion or contact Articulate Support.