Jump to content
Search Community

Video is pinning when pin set to false or not set

LSchneiderman test
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

I have some videos that I want to start/stop on scroll. The behavior is slightly different for desktop and mobile. On desktop, the video pins and plays, while on mobile, it doesn't pin but still plays, though at a different trigger point. What's happening, though, is that on mobile, it both pins and plays, although the trigger point is correct. Why is this happening please and how do I correct it?

See the Pen yLRaReY by lschneiderman (@lschneiderman) on CodePen

Link to comment
Share on other sites

  • Solution

Hi,

 

I believe this might be more related to this:

https://stackoverflow.com/questions/49930680/how-to-handle-uncaught-in-promise-domexception-play-failed-because-the-use

 

I made a fork of your codepen and tested it on phone and tablet without problems:

See the Pen rNqMXQV by GreenSock (@GreenSock) on CodePen

Here is the link without iframes:

https://cdpn.io/pen/debug/rNqMXQV

 

Finally you should really take a look at GSAP MatchMedia:

https://greensock.com/docs/v3/GSAP/gsap.matchMedia()

 

Hopefully this helps.

Happy Tweening!

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