diff --git a/src/components/ScrollyVideo/ScrollyVideo.mdx b/src/components/ScrollyVideo/ScrollyVideo.mdx index e69e3c36..848efb85 100644 --- a/src/components/ScrollyVideo/ScrollyVideo.mdx +++ b/src/components/ScrollyVideo/ScrollyVideo.mdx @@ -424,14 +424,7 @@ Here is a [demo](?path=/story/components-graphics-scrollyvideo--advanced) that u jump: false, }); } - - animationFrame = requestAnimationFrame(jumpVideo); } - - // Cancel requestAnimationFrame on destroy - onDestroy(() => { - cancelAnimationFrame(animationFrame); - });