Jump to content
Search Community

MartinSansom

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by MartinSansom

  1. 13 hours ago, Cassie said:

    You can tie the progress in to values from a range slider like this. 
     

     


    Doing both scroll and a slider will definitely be possible but you'll have to work out what to do when the slider and scroll conflict. Which values overwrite which?

     

     

     

    Thank you so so so soooooooo much Cassie - your solution worked perfectly!!!!! (and with so few lines of code, I'm falling back in love with GSAP)

    • Like 1
  2. Hi everyone,

     

    I'm trying to create an image sequence that can be played backwards or forwards by scrolling the page up and down. But I also need the sequence to be controllable using a video style progress bar.

     

    Using some of the code that I've copied from these forums I've managed to get the image sequence working and I've also managed to create a play bar control with a playhead that can be dragged left and right.

     

    But I can't get the playhead to control the current image that is displayed in the image sequence.

     

    In the code for the image sequence I specify the number of frames, so I'm assuming I need to divide the length of the progress bar into an equivalent number of 'units' and then advance or rewind the image sequence every time the play head is dragged by one 'unit'. 

    See the Pen yLMWwZz by MartinSansom (@MartinSansom) on CodePen

×
×
  • Create New...