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

Method animate

src/content/Backgrounds/Ballpit/Ballpit.jsx:187–195  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

185 #w() {
186 if (this.#n) return;
187 const animate = () => {
188 this.#l = requestAnimationFrame(animate);
189 this.#c.update();
190 this.#h.delta = this.#c.getDelta();
191 this.#h.elapsed += this.#h.delta;
192 this.onBeforeRender(this.#h);
193 this.render();
194 this.onAfterRender(this.#h);
195 };
196 this.#n = true;
197 this.#c.reset();
198 animate();

Callers

nothing calls this directly

Calls 2

updateMethod · 0.45
renderMethod · 0.45

Tested by

no test coverage detected