| 开发者 | artemsemkin |
|---|---|
| 更新时间 | 2026年12月1日 17:06 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.2 |
| 版权: | GPLv3 |
| 版权网址: | 版权信息 |
#anchor link (or a bare #) scrolls smoothly to the target, using a slightly snappier easing than the main scroll.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.
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.
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.
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.
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.
Deactivate the plugin, or for conditional control use the arts_smooth_scrolling/enabled PHP filter.
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.