Skip to content

How to Add Smooth Scroll in WordPress?

Key Takeaways

  • Nexter Blocks adds smooth scrolling with the free Smooth Scroll block, which loads the Lenis smooth-scroll library and works without custom code or a separate plugin.
  • Smooth Scroll uses Scrolling Core sliders for Duration, Wheel Multiplier, and Touch Multiplier, plus Advanced easing choices like Linear, Ease Out Cubic, Ease In Out, Ease Out Quart, and Custom.
  • Infinite in Smooth Scroll makes scrolling past the bottom start again from the top, and Smooth Navigation adds eased scrolling for links in the Scroll Navigation block.
  • Only the first Smooth Scroll block on a page is used, the effect does not show in the editor, and visitors with reduce motion set do not get smooth scrolling.
Table of Contents

Smooth scrolling replaces the step-by-step jump of a mouse wheel with a soft, eased glide, which makes long landing pages feel more polished. The free Smooth Scroll block in Nexter Blocks adds this to a page with a single block.

What It Does

The Smooth Scroll block makes scrolling on the page it sits on glide instead of jump. It has no visible output of its own. It loads the Lenis smooth-scroll library and passes it your settings.

Why It Matters

Long pages with big sections feel calmer when the scroll eases to a stop. You get the effect without adding custom code or a separate plugin.

What You Get

  • Duration, Wheel Multiplier and Touch Multiplier sliders in Scrolling Core.
  • An easing choice and an Infinite option under Advanced.
  • A Smooth Navigation switch for the Scroll Navigation block.

Benefits

  • One block, no code.
  • Free, and it works the same in Nexter Blocks and with Nexter Blocks Pro.
  • Keyboard scrolling is smoothed as well.

Capabilities

  • Set how long each glide lasts, how far one wheel step moves and how far a swipe moves.
  • Choose an easing: Linear, Ease Out Cubic, Ease In Out, Ease Out Quart or Custom.
  • Turn on Infinite so scrolling past the bottom starts again from the top.
  • Smooth the jumps of the Scroll Navigation block with Smooth Navigation.

How It Works

On the published page the block looks for its wrapper, loads Lenis and starts it with your values. Duration is divided by 5000 to get seconds, so 2500 is about half a second. Wheel Multiplier is divided by 1000, so 1000 is the normal distance. The page scripts do not run in the editor, so you only see the effect on the live page.

How to Use It

  1. Go to Nexter > Blocks, search for Smooth Scroll and turn it on.
Nexter Blocks screen with the Smooth Scroll block turned on and outlined in the Blocks list
  1. Add the Smooth Scroll block anywhere on the page. It shows nothing on the page itself. To use it across the site, add it to a template that loads on every page, such as your header.
  2. In Scrolling Core, keep Simple selected and set Duration, Wheel Multiplier and Touch Multiplier.
The Scrolling Core panel with Duration, Normalize Wheel, Wheel Multiplier and Touch Multiplier
  1. Click Advanced in the same panel to pick an Easing or turn on Infinite.
  2. Save and scroll the live page.
The Advanced options of Scrolling Core with the Easing dropdown

Settings

SettingWhat it doesDefault
DurationHow long each glide lasts. The value is divided by 5000, so 2500 is about 0.5 seconds and 5000 about 1 second. The slider runs from 0 to 150002500
Normalize WheelMeant to even out wheel speed between mice (see Limitations)On
Wheel MultiplierDistance per mouse-wheel step. The slider runs from 0 to 1000, where 1000 is the normal distance and 500 is half. Only shown while Normalize Wheel is on500
Touch MultiplierDistance per swipe on touch screens. The slider runs from 0.5 to 32
Easing (Advanced)Linear, Ease Out Cubic, Ease In Out, Ease Out Quart or CustomEase Out Cubic
Custom (Advanced)Your own easing formula, using tNone
Infinite (Advanced)Scrolling past the bottom starts again from the topOff
Smooth Navigation (Connections)Smooth, eased scrolling for links in the Scroll Navigation blockOff

Use Cases

  • Long landing pages with large sections.
  • Portfolio and agency pages where a calm feel matters.
  • One-page sites with the Scroll Navigation block.

Limitations

  • Normalize Wheel currently has no effect on scrolling, which is the same with it on or off. In the editor it also controls whether Wheel Multiplier is shown, so keep it on while you adjust that slider.
  • Smooth Navigation needs the Scroll Navigation block, which is part of Nexter Blocks Pro. Ordinary links to sections on the page still jump.
  • Only the first Smooth Scroll block on a page is used.
  • Visitors whose device is set to reduce motion do not get smooth scrolling. The block turns itself off for them.
  • The effect does not show in the editor. Check it on the published page.

Troubleshooting

Scrolling feels too slow or too short

Raise Wheel Multiplier to 1000 for the normal distance, or lower Duration for a shorter glide.

Nothing changes in the editor

That is expected. The effect runs on the published page, so open the live URL.

Smooth scrolling does not happen on my computer

If the operating system is set to reduce motion, the block does not start. Turn off the reduce-motion setting to test, and remember visitors with it on will not see the effect.

I cannot find the Wheel Multiplier setting

Wheel Multiplier is only shown while Normalize Wheel is on. Turn Normalize Wheel on in Scrolling Core, then adjust the slider.

Section links still jump

Smooth Navigation only affects the Scroll Navigation block, which is a Nexter Blocks Pro block. Plain anchor links are not changed.

Suggested Reading

Share your Thoughts

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!