Dcoo Posted December 29, 2020 Share Posted December 29, 2020 Would it be possible to change the baseURL for an image sequence within GSAP? Right now I'm working on running two TimelineMax and two canvas tags and switching display on mobile( its not actually working yet ) , that way I only need change the baseUR for mobile or browser ( the mobile image sequence is rendered at a different ratio). See the Pen GRjybaE by davicoo (@davicoo) on CodePen Link to comment Share on other sites More sharing options...
ZachSaucier Posted December 29, 2020 Share Posted December 29, 2020 Hey Dcoo. First off, we highly recommend the new sleeker API syntax. Upgrading is easy! You've got a lot of code in your demo. What's your core question? From what I can tell, it sounds like you just need to add logic to change the baseURLm for mobile devices, correct? That's not a GSAP question. Just something like this: var baseURLm = innerWidth > someBreakpoint ? "https://parkviewhomes.info/choose-a-model-for-sale/vids/mob/" : mobileURL; 1 Link to comment Share on other sites More sharing options...
Dcoo Posted December 29, 2020 Author Share Posted December 29, 2020 Thanks Zach, Ive updated API syntax, and Ill try the "Breakpoint" ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now