[WordPress] 外掛分享: Smooth scrolling with Lenis

首頁外掛目錄 › Smooth scrolling with Lenis
4,000+
安裝啟用
★★★★
4.8/5 分(5 則評價)
5 天前
最後更新
問題解決
WordPress 5.2+ PHP 7.2+ v1.7.0 上架:2024-06-20

內容簡介

Smooth scrolling with Lenis 外掛能夠將 Lenis 函式庫整合至您的 WordPress 網頁,提供流暢的捲動效果,提升使用者體驗。啟用後,您可以在自訂程式碼中使用 smoothScrollLenisCallback(event) 函式來處理捲動事件。

【主要功能】
• 整合 Lenis 函式庫
• 提供流暢的捲動效果
• 支援自訂捲動事件處理

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.7.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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 add this attribute data-lenis-prevent to the popup.
Credits:
– Lenis library: https://github.com/darkroomengineering

延伸相關外掛

文章
Filter
Mastodon