Directory / plugin

Smooth scrolling with Lenis

v1.7.0 · by Michael

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

View on WordPress.org

About this plugin

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

Plugin tags