How to make two blocks move at different speeds when scrolling?

  • 0
    The bottom line is that there are two blocks that will move at different speeds when scrolling
    JavaScript Anonymous, May 9, 2020

  • 2 Answers
  • 0
    Well, you listen to the scroll, inside for each block you call the same function, into which you pass the speed with which the block should move.
    Anonymous

  • 0
    set the event and animate both blocks separately.

    https://developer.mozilla.org/en/docs/Web/API / Docu ...
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!