This lesson is for members. Join us?
Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!
Closing the Mobile Navbar on Scroll
The Composition API Masterclass is coming soon!
Sign-up for the Vue.js Masterclass 2024 Edition.
In this lesson we create another custom Vue.js 3 directive to run code when the page is scrolled. We also learn about debouncing scroll events, in order to prevent over firing our onscroll functions.