Answer the question
In order to leave comments, you need to log in
How to disable three.js object?
Let's say I want to use animation on only one page. And on the site, transitions do not refresh the page, that is, only the content is loaded and changed. Therefore, when switching to another page, the script continues to work. This is not good. How to "legitimately" turn it off? Ideally, delete the three,js object and all its tails altogether. And if they visit the page with this animation again, then re-initialize the script. I dug around a lot. I just stumbled upon deleting objects in the three js object itself. But after all, the script continues to work and try to start the animation.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question