Endless Scroll

I have a collection of images that I want to appear and move as the user scrolls with the mouse wheel. I did a version with the mouseWheel event (updating the position of the images) but the scroll is rather slow and not smooth at all (I think because the continuous refreshing in draw() of few images with different alpha values). I wonder if is possible to put the images fixed in the HTML structure, so the scroll happens in a normal web page but controlling the images files (with parameters as alpha) and other events/texts from p5.js. Any ideas or examples? Thanks a lot.

Sign In or Register to comment.