Skip to content

Directive using vue js to show the menu when the user scrolls up and hide when scrolling down using pure javascript

Notifications You must be signed in to change notification settings

wemboava/vue-scrollup-menu

Repository files navigation

vue scrollup menu

Directive using vue js to show the menu when the user scrolls up and hide when scrolling down using pure javascript

Example

ezgif com-crop

Online demo

https://wemboava.github.io/vue-scrollup-menu

Getting Started

install

npm i vue-scrollup-menu

Use

<template>
    <header v-vue-scrollup-menu class="header"></header>    
</template>

Import directive

<script>
    import vueScrollupMenu from 'vue-scrollup-menu'

    export default {
        name: 'Header',

        directives: {
            vueScrollupMenu
        },
    }
</script>
Or use directive globally
import Vue from 'vue'
import vueScrollupMenu from 'vue-scrollup-menu'

Vue.directive('vue-scrollup-menu', vueScrollupMenu)

About

Directive using vue js to show the menu when the user scrolls up and hide when scrolling down using pure javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published