GuptaSiddhant / react-scrolly-telling

Create scrolly-telling animations in React with ease.
https://react-scrolly-telling.vercel.app
MIT License
3 stars 0 forks source link

Hello, great package, just a suggestion, if we can add a frameRate option. #1

Open akshat24sharma opened 1 month ago

akshat24sharma commented 1 month ago

If we can add a frame rate option which helps us to provide a smoother animation on scroll instead of jumping through time, maybe a setInterval, so instead of jumping to the currentTime of video we touch every frame first.

GuptaSiddhant commented 1 month ago

Hi @akshat24sharma, thank you for using the library.

Can you tell me more about your specific needs? How would you expect frames to change when the user scrolls which is different to changing the currentTime? The problem is browsers do not natively support setting or jumping to a certain frame.

What I do plan is to support native CSS scroll animations for modern browsers which should boost performance. #2.

Let me know how else can I improve the library. Thanks

akshat24sharma commented 1 month ago

Hey @GuptaSiddhant sorry for late reply, actually the thing is, on scrolling the animation is not smooth and some frames are missing if we compare it to the video (video is in 60 fps), so is there any other way to increase the no of frames to be added on scroll and needed your suggestion on how to calculate the perfect height of the container so that no frames get cur