Skip to content

laineus/vue-scroll-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vue Scroll Hook

Vue 2.x Vue 3.x npm

A Vue plugin that makes a hook named onScroll that can be registered an event on window scrolling.

Installation

npm install --save vue-scroll-hook
import { createApp } from 'vue'
import VueScrollHook from 'vue-scroll-hook'

const app = createApp(...)
app.use(VueScrollHook)

Usage

export default {
  data () {
    return {
    }
  },
  created () {
  },
  onScroll (e) {
    console.log(e)
    // Do something you want to on window scrolling
  }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published