jhotadhari/rain-effect

Base Development enquiry

Closed this issue · 0 comments

Hi Andreas:

Forgive me but this is not an issue on your Wordpress Plugin but a request about info on how to get access to the Raindrops object in the original development of Lucas Bebber. I wrote him (as an issue in his gitHub repository) months ago asking this w/o answer:

"_I'd like to use your code in a development in the way shown in the Demo 2. The point would be to have the webgl-engine running the water animations only at the main screen.

The case is that my development is done with the help of jQuery Mobile, using a multi-page schema, that is, I have only one html document with all the pages in it (including the referred main page).

Due to this architecture I'm concerned about the "raineffect" kept on running even when not shown (when the user is on a page different from the main) and so consuming valuable resources."_

This way, appealing to your knowledge of the Lucas Bebber development, I ask you for enlighten about how to access the Raindrops object in a global way (from another JS file), if it's possible. This way I could stop/resume the animation logic (requestAnimationFrame) found in the update method of that object.

Thanks for your time.