JavaScript ScrollLoopMenu Plugin
Last Updated :
22 Jul, 2024
In this article, we will learn how to implement the Scrolling Loop Menu using JavaScript-based ScrollLoopMenu plugin. It is another type of simple and interactive scrolling menu used in developing web pages for getting some nice visual effects.
Note: Please download the JavaScript ScrollLoopMenu plugin in the working folder and include the required files in the head section of your HTML code.
<link href=”https://use.typekit.net/rtr2vsr.css” rel=”stylesheet” type=”text/css”/>
<link href=”css/base.css” rel=”stylesheet” type=”text/css”/>
<script src=”js/index.js”></script>
Example: The following example demonstrates the scrolling loop menu using HTML controls and JavaScript based ScrollLoopMenu plugin. Different classes like "menu", "menu__item-inner", "frame__link" of the of "base.css" file of the plugin are attached to the HTML tags as shown below for the expected output.
html
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta name="viewport"
content="width=device-width,
initial-scale=1" />
<title>Scroll Loop Menu Plugin</title>
<meta name="description"
content="scroll loop animation." />
<meta name="keywords"
content="Enter keywords in your web page" />
<link rel="stylesheet"
href=
"https://use.typekit.net/rtr2vsr.css" />
<link rel="stylesheet"
type="text/css"
href="css/base.css" />
</head>
<body>
<div class="frame">
<h1 class="frame__title">
GFG Scroll Loop Menu
</h1>
<div class="frame__links">
<a href=
"https://www.geeksforgeeks.org/javascript-tutorial/"
class="frame__link">
JavaScript
</a>
<a href=
"https://www.geeksforgeeks.org/css-tutorials/"
c lass="frame__link">
CSS
</a>
</div>
<span class="frame__button"
aria-hidden="true">
Close
</span>
</div>
<nav class="menu">
<div class="menu__item">
<a class="menu__item-inner">
Algorithms
</a>
</div>
<div class="menu__item">
<a class="menu__item-inner">
Data Structures
</a>
</div>
<div class="menu__item">
<a class="menu__item-inner">
Languages
</a>
</div>
<div class="menu__item">
<a class="menu__item-inner">
Interview Corner
</a>
</div>
<div class="menu__item">
<a class="menu__item-inner">
GATE
</a>
</div>
<div class="menu__item">
<a class="menu__item-inner">
ISRO CS
</a>
</div>
<div class="menu__item">
<a class="menu__item-inner">
UGC NET CS
</a>
</div>
<div class="menu__item">
<a class="menu__item-inner">
CS Subjects
</a>
</div>
<div class="menu__item">
<a class="menu__item-inner">
Web technologies
</a>
</div>
<div class="menu__item">
<a class="menu__item-inner">
Programming
</a>
</div>
<div class="menu__item">
<a class="menu__item-inner">
Careers
</a>
</div>
<div class="menu__item">
<a class="menu__item-inner">
Internship
</a>
</div>
<div class="menu__item">
<a class="menu__item-inner">
Placement course
</a>
</div>
<div class="menu__item">
<a class="menu__item-inner">
Geek of the Month
</a>
</div>
</nav>
<script src="js/index.js"></script>
</body>
</html>
Output: In the beginning: 
When "div" with link is clicked, it redirects the page to the respective "href" links.
The following shows the scrolling menu feature of the ScrollLoopMenu plugin.
Similar Reads
Angular PrimeNG TabMenu Scrollable Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the TabMenu Scrollable in Angular PrimeNG. The TabMenu compo
4 min read
Scrollspy using HTML CSS and JavaScript In this article, we will learn about Scrollspy which is a popular feature used in modern web applications. It is used to highlight and allow to navigate through different sections of long web pages as the user scrolls. It increases the interaction between the user and the web application by providin
5 min read
How to set smooth scroll after clicking the link using JavaScript ? Smooth scroll provides a seamless user experience as it provides an effective way to enhance website navigation. By implementing smooth scroll functionality, one can ensure that users transition fluidly between different sections of your webpage when they click on internal links.There are several me
4 min read
script.aculo.us ScrollTo Effect In this article, we will demonstrate the effect of ScrollTo by using JavaScript library called script.aculo.us having smooth transition from one to another. We can adjust the duration of the effect as well. Syntax: Effect.ScrollTo('element_id', { duration:'0.2', offset:-20 }); Note: To use this libr
4 min read
Pure CSS Scrollable Horizontal Menu When there isn't enough room, the scrollable horizontal menu items can be used. It gives responsiveness to the web pages. To create a scrollable horizontal menu, add the pure-menu-scrollable class. Pure.CSS provides vertical menus by default. You can change the vertical menu to a horizontal menu by
3 min read
Foundation CSS Smooth Scroll Foundation CSS is an open-source & responsive front-end framework built by ZURB foundation in September 2011, that makes it easy to design beautiful responsive websites, apps, and emails that look amazing & can be accessible to any device. It is used by many companies such as Facebook, eBay,
5 min read