MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / #stopAnimation

Method #stopAnimation

src/ts-default/Backgrounds/Ballpit/Ballpit.tsx:247–252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

245 }
246
247 #stopAnimation() {
248 if (this.#isVisible) {
249 cancelAnimationFrame(this.#animationFrameId);
250 this.#isVisible = false;
251 }
252 }
253
254 #render() {
255 this.renderer.render(this.scene, this.camera);

Callers 3

#onIntersectionMethod · 0.95
#onVisibilityChangeMethod · 0.95
disposeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected