I have Bootstrap one-page template with a THREE.js scene in the middle as the background. Let's say its parent iframe has id="3D". The task is to
skip animate() / render() functions while the iframe is offscreen.
See attached wireframe:
I didn't find any clear solution on how to do this. Maybe something connected to the scrolling (mousewheel) event or maybe a method how to check if iframe is onscreen or not? The code should be inside THREE.js script if it's possible.
That's why a solution like http://jsfiddle.net/t2L274ty doesn't work.
