LauraS Posted May 10, 2021 Share Posted May 10, 2021 This would seem to be a simple issue, but I'm having trouble getting an exact answer. Also, I'm a newbie at ScrollTrigger. When the user comes to my page, I have a video at the top. When the user first begins to scroll, I want that action to trigger the video to play. Can anyone help with this please? See the Pen vYxNKRb?editors=1111 by lschneiderman (@lschneiderman) on CodePen Link to comment Share on other sites More sharing options...
OSUblake Posted May 10, 2021 Share Posted May 10, 2021 Hi @LauraS You're using jQuery, which doesn't return the actual video element. I would just do this. var videoElem = document.querySelector('#vid1'); 1 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