Forum Discussion
[JS] SET OBJECT POSITION
Your surname aint coincidence for this kind of interactivity ;-) Its really parent-child behaviour of elements ;-)
Well made it happen. In fact i wanted rotation of the planets in our galaxy on SlideLayers as example, but especially rotation was a bit more tricky. I probably make it happen some time but not today ;-)
https://360.articulate.com/review/content/41f9e131-b5ba-4bef-8656-d57cd1d6f526/review
Here you see a sample of whats needed to get SlideLayers to act upon changes of objects on the baseLayer. In fact you only need to calculate the distance between the parent-child, so you could do it with less Javascript.
But for now showing a child on a SlideLayer moving along with a random movement of a parent on the baseLayer.
The rotation idea i will finish some other time.. here is the working Storyline too.
Hi Math,
If I move the item in the base layer (in a Drag and Drop freeform) can I get the proprety X and Y of my base item to set the X and Y for my item in the slideLayer?