Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

kpiraro

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

3 Newbie

About kpiraro

  • Rank
    Newbie
  1. This is a huge help, @Sahil! Thanks so much for taking the time. I think the two .play() methods, in normal javascript and GSAP, were a particular sticking point; I didn't know about javascript .play() and thought I could just use GSAP .play() to trigger the video. And the querySelector is obviously important too. Thanks again!
  2. Thanks so much, @Sahil! I knew there was some piece of the puzzle I wasn't getting. Could I ask you to explain one point about WHY this works? I see you added another variable, "vd," that grabs the class of the video element with querySelector. That variable is used in addition to the "video" variable I declared with the video element itself. So in the playVideo function, it looks like you add "video" to the vtl timeline, but use the .play() method on "vd." Can you explain why that works? What's the difference between assigning variables to the whole video element vs.
  3. Hi there, I've been struggling with this for a while now and finally decided to submit this to the forum. I've read a number of posts that make this seem easy, but I'm obviously missing something. I'm trying to simply add an HTML video element to a timeline so I can control when it starts to play and coordinate it with my other banner elements. In this simple example, I want to control how long I see a black screen with the intro text before I fade that black background and text away and start the video. (The Pen I've posted here is a much shortened version, btw, for si
×