该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Smoothscroller

描述

This plugin adds a smooth scroll effect motion to anchor links on the same page.
You can apply the effect to all posts/pages or certain posts/pages and adjust scroll speed.

The links are bound by the id attribute.

For the source/origin element, link to the target like so, with a href attribute of the target id <a href="#example"></a>

For the target element, you give it a corresponding id attribute like so – <h2 id="example">the target</h2>

用法

The settings are found via the dashboard Settings > Smoothscroller

  • Select to apply to all post and pages

  • Select to have on home page only

  • Select to have on certain pages only

  • Select to have on certain posts only

  • Choose the speed of the scroll

屏幕截图

  • Image of internal options

安装

This section describes how to install the plugin:

  1. Upload the smoothscroller folder to the /wp-content/plugins/ directory
  2. 通过WordPress的“插件”菜单激活插件
  3. Options are in Settings => Smoothscroller

常见问题

How do I make a link on the same page

The links are bound by the id attribute.

For the source/origin element, link to the target like so, with a href attribute of the target id <a href="#example"></a>

For the target element, you give it a corresponding id attribute like so – <h2 id="example">the target</h2>

评价

2017年10月16日
Does what is says and nothing else - that's how its supposed to be. If you ever plan on adding any features, maybe add easings (although it is not to hard your code, but some users might find that option useful).
2016年9月3日
Great simple plugin. The only thing missing is an "offset" option for where the page scrolls to when you click an anchor link.
阅读所有7条评价

贡献者及开发者

“Smoothscroller” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Smoothscroller”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.0

  • Initial release.
    21/08/15