Jump to content
Search Community

Video scroll not working in mobile

nalinsamee76 test
Moderator Tag

Recommended Posts

I've set the following properties to the video element playsinline muted loop autoplay found on https://stackoverflow.com/questions/38319685/mp4-not-able-to-load-in-mobile-browser and now the video loads on mobile, but it will auto play. To my knowledge this has nothing to do with GSAP, so I don't know what could fix this issue. 

 

See the Pen dyKYrXp by mvaneijgen (@mvaneijgen) on CodePen

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

4 hours ago, mvaneijgen said:

I've set the following properties to the video element playsinline muted loop autoplay found on https://stackoverflow.com/questions/38319685/mp4-not-able-to-load-in-mobile-browser and now the video loads on mobile, but it will auto play. To my knowledge this has nothing to do with GSAP, so I don't know what could fix this issue. 

 

 

 

But the issue is I can't add the autoplay method. My client needs to scroll the video with text segments. Please give proper solution for it.I'm stucked with this bug.

Link to comment
Share on other sites

Hi,

 

If you don't want the video to autoplay just set the attribute to false:

https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/autoplay

 

Also take a look at this thread as well for video + ScrollTrigger:

If you're struggling with something else, please be more specific about the issue you're facing and what you expect to see/have in your app.

 

Let us know if you have more questions.

 

Happy Tweening!

 

  • Like 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...