dotnav-doomxdd

1.0.2 • Public • Published

DotNav

This module allows the user to quickly navigate through your page by dot navigation.


Usage

  1. Add "js-dot-nav" class to all the sections you want to navigate to
  2. Every section must have id parameter
  3. (Optional) Specify dot-nav-title attribute on the sections to show title on hover

Example:

<!-- Example of sections: -->
<section id="section1" class="js-dot-nav" dot-nav-title="Title 1">
</section>

<section id="section2" class="js-dot-nav" dot-nav-title="Title 2">
</section>

etc..

This is my first npm package, so if something doesn't work, please let me know :)

Package Sidebar

Install

npm i dotnav-doomxdd

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

8.22 kB

Total Files

7

Last publish

Collaborators

  • doomxdd