I am currently working on a project where I need to have multiple p5 sketches on the same page. For this, I am going to use p5 instance mode. The problem is that I want to make a single page scroll but:
- some of my sketches have sound which will cause multiple sounds to play at the same time.
- it will probably be too heavy for the browser
what i want is to trigger the sketches only when they are visible in the viewport, can someone help me? I know some scroll trigger libraries as greensock but i don’t know how to use it in my favor.