Linux 软件免费装
Banner图

Arts Smooth Scrolling for Elementor

开发者 artemsemkin
更新时间 2026年12月1日 17:06
PHP版本: 8.0 及以上
WordPress版本: 7.2
版权: GPLv3
版权网址: 版权信息

标签

elementor scrolling smooth scroll lenis momentum scrolling

下载

1.0.8 1.0.5 1.0.6 1.0.7 1.0.0 1.0.1 1.0.10 1.0.9 1.0.2 1.0.4 1.0.3

详情介绍:

Smooth Scrolling adds Lenis-powered momentum scrolling to your Elementor site: the page glides to a stop instead of snapping, in-page anchor links animate to their target, and GSAP's ScrollTrigger stays in sync automatically when it's on the page. It works the moment you activate it — there's nothing to switch on. Tune the duration and easing to taste, and the rest of the site keeps working as before — Elementor Sticky, dynamic content, everything. Scrolling is powered by Lenis (MIT) by darkroom.engineering, compiled into the plugin's own bundle. ✅ Used in Velum and Trigger themes Velum, my portfolio theme for architects and studios, scrolls with this plugin. Trigger, my AJAX portfolio theme, installs it during setup and scrolls with it too. Velum's page and Trigger's page have live demos to try it. What it does Configuration Everything lives in one tab: Elementor → Site Settings → Smooth Scrolling. Duration, easing (Expo Out or Linear), and the disable-on-touch switch. Changes apply live in the editor preview. Footprint A small inline loader sets the page's scroll state synchronously and fetches the engine bundle itself — nothing is enqueued. On a device where Disable on Touch Devices applies, that fetch never happens.

安装:

  1. Install and activate Elementor (the free version is fine).
  2. Install and activate Arts Smooth Scrolling for Elementor.
  3. Browse your site. Smooth scrolling is already running. To tune duration and easing, open Elementor's Site Settings and find the Smooth Scrolling tab.

屏幕截图:

  • Duration, easing, and the disable-on-touch switch.

常见问题:

How do I access the Lenis instance from JavaScript?

window.artsSmoothScrolling.ready is a promise that resolves once the engine has started. window.artsSmoothScrolling.lenis is a getter for the live Lenis instance, null while the engine isn't running.

Does it work with GSAP and ScrollTrigger?

Yes, automatically. If window.gsap is present, the engine drives Lenis off GSAP's ticker (added with priority, so it runs ahead of GSAP's own tweens) instead of its own animation-frame loop. GSAP may load after the engine: the engine switches to the ticker on the first frame it appears. Scrolling itself follows the browser's frame clock, so no global GSAP setting is changed and GSAP's lag smoothing stays at its default.

What happens when I click a link like /#pricing on a page that isn't the homepage?

It navigates to the homepage and then scrolls to the pricing anchor there — the same thing that link does in any browser without this plugin. There's no trailing-slash normalization in the same-page check, so a link is only treated as pointing at the current page when its URL matches exactly.

Does it affect Elementor's Sticky elements?

Elementor's Sticky effect has its own "Anchor Offset" (sticky_anchor_link_offset) setting for compensating anchor-link scroll targets under a sticky header. That offset isn't applied while smooth scrolling is active, since anchor scrolling then goes through Lenis rather than Elementor's native scroll handling.

Does it load anything on touch devices?

Not when Disable on Touch Devices is on, which is the default. The inline loader checks a media query before ever requesting the engine bundle, so phones and tablets download nothing.

How do I turn it off?

Deactivate the plugin, or for conditional control use the arts_smooth_scrolling/enabled PHP filter.

Does it work with AJAX page-transition plugins (Barba.js-based themes, etc.)?

The engine stays alive across a page swap: it lives on the window, and a theme that re-runs its scripts after a transition doesn't start a second copy. What the plugin doesn't do is know about your transition library. It won't pause scrolling while a transition plays, return to the top when the new page lands, or re-measure the page afterwards. Those belong to the theme, and the plugin gives it the controls: window.artsSmoothScrolling.get()?.lenis exposes stop(), start(), scrollTo() and resize(). With Barba.js or any other transition library, a theme or a snippet has to do it. The developer reference lists the exact calls and the pitfalls, such as the Lenis instance being replaced during a visit. I haven't tested the plugin against specific third-party transition libraries, so if one misbehaves, please report it.

更新日志:

1.0.10 – December 1, 2026 1.0.9 – November 26, 2026 1.0.8 – November 21, 2026 1.0.7 – November 16, 2026 1.0.6 – November 2, 2026 1.0.5 – October 21, 2026 1.0.4 – October 13, 2026 1.0.3 – October 8, 2026 1.0.2 – September 20, 2026 1.0.1 – August 18, 2026 1.0.0 – August 17, 2026 Initial release.