# Smooth scroll script isn't working

**URL:** <https://forum.readymag.com/t/smooth-scroll-script-isnt-working/1413>\
**Category:** Custom code\
**Created:** [March 27, 2023, 8:17am UTC](https://forum.readymag.com/t/smooth-scroll-script-isnt-working/1413 "2023-03-27T08:17:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![artmilitonian](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/artmilitonian/32/786_2.png) [@artmilitonian](https://forum.readymag.com/u/artmilitonian)\
**Post date:** [March 27, 2023, 8:17am UTC](https://forum.readymag.com/t/smooth-scroll-script-isnt-working/1413/1 "2023-03-27T08:17:17Z")

</div>

Hi there.

I’d like to use this smooth scroll script: [GitHub - studio-freight/lenis: How smooth scroll should be](https://github.com/studio-freight/lenis) (here’s demo: [https://lenis.studiofreight.com](https://lenis.studiofreight.com))

So, I put this in section:

And after this in the same section:

But when the website just fixed and I can scroll anymore.

---

<div class="post-metadata">

**Author:** ![Lee](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/lee/32/1161_2.png) [@Lee](https://forum.readymag.com/u/Lee)\
**Post date:** [June 19, 2023, 6:51pm UTC](https://forum.readymag.com/t/smooth-scroll-script-isnt-working/1413/2 "2023-06-19T18:51:57Z")

</div>

Hey, did you find a way to implement it? I´m facing the same problem as you i think. In need of a smooth scroll.

---

<div class="post-metadata">

**Author:** ![neueMeta](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/neuemeta/32/92_2.png) [@neueMeta](https://forum.readymag.com/u/neueMeta)\
**Post date:** [June 20, 2023, 10:35am UTC](https://forum.readymag.com/t/smooth-scroll-script-isnt-working/1413/3 "2023-06-20T10:35:27Z")

</div>

make sure to apply the scrolling onto the right container. depending on what pageorder you have set in RM different wrapperdivs get scrolled and not the html container.

---

<div class="post-metadata">

**Author:** ![Lee](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/lee/32/1161_2.png) [@Lee](https://forum.readymag.com/u/Lee)\
**Post date:** [June 27, 2023, 2:36pm UTC](https://forum.readymag.com/t/smooth-scroll-script-isnt-working/1413/4 "2023-06-27T14:36:43Z")

</div>

i applied the scrolling animation directly on an picture widget that gets scrolled to the left and of the page. repeated it for many images side by side. The whole scrolling feels hacky/chunky. How would you go about making it smoother @neueMeta?

---

<div class="post-metadata">

**Author:** ![neueMeta](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/neuemeta/32/92_2.png) [@neueMeta](https://forum.readymag.com/u/neueMeta)\
**Post date:** [June 29, 2023, 8:04am UTC](https://forum.readymag.com/t/smooth-scroll-script-isnt-working/1413/5 "2023-06-29T08:04:21Z")

</div>

well, your problem sounds a bit like a performance problem. what @artmilitonian wanted to achieve is to implement a script that changes the general scrollbehaviour, like speed, ease, etc…

---

<div class="post-metadata">

**Author:** ![Raijin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/raijin/32/3228_2.png) [@Raijin](https://forum.readymag.com/u/Raijin)\
**Post date:** [April 28, 2025, 12:01am UTC](https://forum.readymag.com/t/smooth-scroll-script-isnt-working/1413/6 "2025-04-28T00:01:06Z")

</div>

Have you figured it out? I want to implement this too but I don’t know what I’m doing.
