Three js Cancel Animation


```typefunction animate() {  /**   * @summary - Animate function for Point Cloud   */  if (!ref.cloud?.el) return  const cloud = ref.cloud  let id  if (ref.cloud.pause) return requestAnimationFrame(animate)  else id = requestAnimationFrame(animate)  cloud.controls.update()  cloud.renderer.render(cloud.scene, cloud.camera)  return id}```

> [How do I stop requestAnimationFrame](https://stackoverflow.com/questions/14465495/how-do-i-stop-requestanimationframe)





