Smooth scrolling with Lenis
v1.7.0Michael · 2024年6月21日 上架
Adds the Lenis library (by darkroom.engineering) to your WordPress page. Simply enable the plugin and it will add the library to your page.
- 正在使用
- 4,000+
- 评分
- 4.8 / 5
- 累计下载
- 2.4 万
- 最近更新
- 2026年8月27日
5 条评价需要 WordPress 5.2+已测试到 7.1.5PHP 7.2+
贡献者
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