Smooth scrolling with Lenis

Smooth scrolling with Lenis

4.8/5 (5 ratings) 4K+ active installs Updated Aug 26, 2026

Adds the Lenis library (by darkroom.engineering) to your WordPress page. Simply enable the plugin and it will add the library to your page.

You can use a function ‘smoothScrollLenisCallback(event)’ in your custom code that will be called by the Lenis scroll event.

Note: if you have popup with scrolling content you’ll need to add this attribute data-lenis-prevent to the popup.

Credits:
– Lenis library: https://github.com/darkroomengineering