Jump to content
Search Community

Lazyload Html5 Video using scrollTrigger not working

Milenoi test
Moderator Tag

Go to solution Solved by elegantseagulls,

Recommended Posts

Hi guys, 

 

I tried to lazyload a video mit scrollTrigger, using data-src Attribute. 

I wonder why this ist not working? 

When section2 top enters bottom of window src of the video is set. But the video does not appear it is invisible. 

What am i doing wrong?

 

Thank you! 

 

Update: Added video.load();

See the Pen eYWxRYY by milenoi-the-sans (@milenoi-the-sans) on CodePen

Link to comment
Share on other sites

  • 1 year later...
  • 2 weeks later...

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