I use seamless-scroll-polyfill in a Remix.run project and it works great. As an enhancement I also want to slow down the transition and add my custom duration. This seems to be possible in the source code as it checks for a duration coming in from the config or uses 500 as default. I've tried to pass my custom duration as
I use
seamless-scroll-polyfill
in a Remix.run project and it works great. As an enhancement I also want to slow down the transition and add my custom duration. This seems to be possible in the source code as it checks for a duration coming in from the config or uses 500 as default. I've tried to pass my custom duration aselementScrollIntoViewPolyfill({ duration: 2000 });
and
elementScrollIntoViewPolyfill({ config: { duration: 2000 } });
.Neither of these worked. Can you please help with where and how to implement a custom duration? Thank you!