Smooth scrolling with Lenis

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

Author:Michael (profile at wordpress.org)
WordPress version required:5.2
WordPress version tested:6.9.4
Plugin version:1.6.0
Added to WordPress repository:21-06-2024
Last updated:17-03-2026
Rating, %:96
Rated by:5
Plugin URI:
Total downloads:15 415
Active installs:3 000+
plugin download
Click to start download

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


ChangeLog