"Turn your boring fixed header into a smart, animated one with one line of code! When scrolling down, the header is hidden – when scrolling up, the header is shown." Creator Simone Mastromattei 📊 Statistics Social Media Links Github smastrom/vue-use-fixed-header 63 ⬆️ Latest ...
npm i vue-use-fixed-header Usage Pass your header's template ref touseFixedHeader. Then apply the returned reactive styles. That's it. <scriptsetup>import{ref}from'vue'import{useFixedHeader}from'vue-use-fixed-header'constheaderRef=ref(null)const{styles}=useFixedHeader(headerRef)</script> ...