=== AddonLogic Anchor Smooth-Scroll ===
Contributors: snehalpancholi
Tags: smooth scroll, anchor links, scroll offset, navigation, UX
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Intercepts on-page #anchor link clicks and smooth-scrolls to the target with configurable offset, duration, and easing — no jQuery.

== Description ==

AddonLogic Anchor Smooth-Scroll overrides the default browser jump-scroll behaviour for all on-page #anchor links. Clicks are intercepted by a delegated event listener and replaced with a smooth animated scroll, with full support for:

* **Offset** — compensate for sticky/fixed headers so targets are not hidden underneath
* **Duration** — control scroll speed (100–3000 ms)
* **Easing** — ease, ease-in, ease-out, ease-in-out, or linear
* **Selector exclusions** — skip specific links (tabs, accordions, JS-driven components)
* **Hash update** — optionally push the anchor to `history` after scrolling
* **On-load hash** — handles #hash present in the URL on page load

== Installation ==

1. Upload the `anchor-smooth-scroll` folder to `/wp-content/plugins/`.
2. Activate the plugin.
3. Configure under **Settings → Anchor Smooth-Scroll**.

== Frequently Asked Questions ==

= My sticky header is covering the target heading. =
Set **Scroll Offset** to the height of your sticky header in pixels, e.g. 70.

= I use a tab plugin and clicking tabs breaks. =
Add the tab nav selector to **Exclude Selectors**, e.g. `.tab-nav a, .vc_tta-tab a`.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
