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

Method #onIntersection

src/ts-default/Backgrounds/Ballpit/Ballpit.tsx:220–223  ·  view source on GitHub ↗
(entries: IntersectionObserverEntry[])

Source from the content-addressed store, hash-verified

218 }
219
220 #onIntersection(entries: IntersectionObserverEntry[]) {
221 this.#isAnimating = entries[0].isIntersecting;
222 this.#isAnimating ? this.#startAnimation() : this.#stopAnimation();
223 }
224
225 #onVisibilityChange() {
226 if (this.#isAnimating) {

Callers

nothing calls this directly

Calls 2

#startAnimationMethod · 0.95
#stopAnimationMethod · 0.95

Tested by

no test coverage detected