How to make two blocks move at different speeds when scrolling?
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
set the event and animate both blocks separately.
https://developer.mozilla.org/en/docs/Web/API / Docu ...Anonymous
To place the code, please use CodePen or similar tool. Thanks you!