Jump to content
Search Community

frederik222

Members
  • Posts

    1
  • Joined

  • Last visited

frederik222's Achievements

0

Reputation

  1. Hi there, I'm using scrollTrigger `onUpdate` method which gives access to `progress` and this indicates the `start` and the `end` value which are the range`0` between `1` , I have tried to clamp those values to get like `0` and `2.8` but this is not working function clamp(num, min, max) { return num <= min ? min : num >= max ? max : num; } I'm trying to use scrollTrigger with video onUpdate(evt) { videoScrollNode.currentTime = evt.progress } the video length is 00:28 , any idea how can i achieve this Thanks for the help.
×
×
  • Create New...