Press "Enter" to skip to content

Vue Component That Highlights Menu Items As You Scroll The Page

The vue-scrollactive component makes it easy to highlight a menu item as “active” while scrolling.

highlight menu item on scroll vuejs, change active menu item on page scroll javascript, highlight menu item on scroll javascript, change active menu item on page scroll

Features:

  • Highlights items by class as you scroll
  • Scrolls to item section on click
  • customizable scroll effect
  • Emits events for complete control

Easy @mention, #hashtag, and URL Highlight for Vue 2.x

How to make use of it:

Installation

yarn
yarn add vue-scrollactive

or npm
npm install --save vue-scrollactive

then install the plugin.

import VueScrollactive from 'vue-scrollactive';

Vue.use(VueScrollactive);

Usage

<scrollactive class="my-nav">
  <a href="#home" class="scrollactive-item">Home</a>
  <a href="#about-us" class="scrollactive-item">About Us</a>
  <a href="#portfolio" class="scrollactive-item">Portfolio</a>
  <a href="#contact" class="scrollactive-item">Contact</a>
</scrollactive>

Highlight Menu Items On Scroll, vue-scrollactive Plugin/Github, jump menu with active class and smooth scroll, highlight menu item on scroll vue js


See Demo And Download

Official Website(eddiemf): Click Here

This superior jQuery/javascript plugin is developed by eddiemf. For extra advanced usage, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published.