Jump to content
Search Community

Can you change baseURL for moble

Dcoo test
Moderator Tag

Recommended Posts

 

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

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;

 

  • Thanks 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...