jQuery provides a beautiful, lightweight, single page and responsive Vertical Dot Navigation plugin to programmers that help in navigating or scrolling through long web pages. The plugin identifies the number of pages or sections in the website and accordingly adds dots for click to scroll through the corresponding contents.
Please download the Vertical Dot Navigation Plugin and include the required file libraries in your working folder as shown in the head section of the following codes.
Download link: https://github.com/maiamachine/jquery-vertical-dot-navigation
Example 1: In the following example, the very basic call of verticalDotNav() method is shown using jQuery. Different page contents are provided in different sections of HTML page.
Example 2: In the following example, various options of the verticalDotNav() method are set as shown below. Just notice the alignment of dots and scrolling speed in the image output and accordingly customize in your code as per the requirement.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.