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.

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 this attribute data-lenis-prevent to the popup.

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

Постављање

  • Enable the plugin
  • Some settings are under „Settings – Lenis“

Прегледи

11. јануар 2025. 5 одговора
Seems to work in all browsers! very nice!But I would prefer a stronger smooth scroll effect. But the plugin has no settings for that.
28. септембар 2024. 2 одговора
The Lenis Smooth Scroll works great. It would be nice to stay up to date to the latest version of Wordpress.
Види сва 3 прегледа

Сарадници и градитељи

„Smooth scrolling with Lenis“ је софтвер отвореног кода. Следећи људи су допринели овом додатку.

Сарадници

Преведите „Smooth scrolling with Lenis“ на свој језик.

Заинтересовани сте за градњу?

Прегледајте код, проверите SVN складиште или се пријавите на белешку градње преко RSS-а.

Белешка о изменама

1.1.0
* update lenis to 1.1.20

1.0.4
* two new properties: lerp and duration

1.0.3
* custom scroll function ‘smoothScrollLenisCallback(event)’ that will be called if available.

1.0.2
* update Lenis to 1.1.13

1.0.1
* prevent JS error when Lenis is not loaded
* load default Lenis CSS
* update Lenis to 1.1.4

1.0.0
* Initial release.