Code breaks, fix it faster
Get to the root cause of every issue with Vue app monitoring

made with vue.js

Vue Use Active Scroll

Highlight Menu / Sidebar

Visit Site

Description

Highlight Menu / Sidebar

"The Intersection Observer is a great API. But it may not be the one-size-fits-all solution to highlight nav/sidebar links. Most likely because you want to:

  • Highlight any clicked link even if it will never intersect
  • Always highlight first/last link once reached the top/bottom of the page
  • Get consistent results regardless of scroll speed
  • Immediately highlight links on click/hash navigation if smooth scrolling is enabled
  • Avoid unnatural highlighting with custom easings or smooth scrolling

Vue Use Active Scroll implements a custom scroll observer which automatically adapts to any type of scroll behavior and trigger and always returns the "correct" active target."


Creator

Simone Mastromattei


Social Media Links

Vue Timer Hook Hook for Time Logic/State Management
icon-eye-dark Created with Sketch. 1.503
Nuxt Content Assets Enable locally-located Assets in Nuxt Content
icon-eye-dark Created with Sketch. 690
Sentry for Vue Vue Application Monitoring
💚 Sponsored by Friends
We’re hosting on Digital Ocean! 💙 Try it today and get a free $100 credit.
Vuex Pathify Unified path syntax to Vuex Stores
icon-eye-dark Created with Sketch. 6.471
z-vue-scan Scan for Component Performance Issues
icon-eye-dark Created with Sketch. 401