Forum Discussion

izzy's avatar
izzy
Community Member
4 days ago
Solved

Javascript across different devices

Hi all.

I am by no means a javascript expert but I have managed to add a few simple animations using javascript. On storyline, I can expand objects when you click them. I have then added these storyline blocks onto rise. When I preview these animations they work on desktop and tablet. However, when using a rotated tablet, the objects move across the screen when I click them. Does anyone have any advice?

Thank you 

  • Are you using the Storyline JS API to do your animations? This should prevent the repositioning, if you are referencing them another way and using GSAP then you will need to add positioning info in as well, one of the issues you may also see, if the user resaizes their browser hey move.

2 Replies

  • Are you using the Storyline JS API to do your animations? This should prevent the repositioning, if you are referencing them another way and using GSAP then you will need to add positioning info in as well, one of the issues you may also see, if the user resaizes their browser hey move.

    • izzy's avatar
      izzy
      Community Member

      Thank you! Using Storyline JS API seemed to sort it out. I was initially using GSAP and no matter what I did, I couldn't seem to influence the xy postioning so that the objects didn't move. Responsiveness is better with JS API.