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>

Upotreba

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

Снимци екрана

Постављање

This section describes how to install the plugin:

  1. Upload the smoothscroller folder to the /wp-content/plugins/ directory
  2. Активирај додатак кроз ‘Додаци’ ставку менија унутар Вордпреса
  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>

Рецензије

16. октобар 2017.
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).
3. септембар 2016.
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.2.1

  • Changed the default scroll duration from 200 ms to 800 ms.

1.2.0

  • Tested with WordPress 7.1.
  • Replaced the legacy CDN-hosted jQuery scrolling libraries with a local, dependency-free script.
  • Added reduced-motion support and keyboard focus handling for improved accessibility.
  • Fixed Front/Home Page targeting when individual page or post IDs are also saved.
  • Hardened settings validation and modernized the settings screen.
  • Added WordPress and PHP requirement headers.

1.0.0

  • Initial release.
    21/08/15