npm

@fiahfy/vue-visibility-changed-mixin

0.0.2 • Public • Published

@fiahfy/vue-visibility-changed-mixin

Vue mixin for visibility changed.

Installation

npm install @fiahfy/vue-visibility-changed-mixin

Usage

import VisibilityChanged from '@fiahfy/vue-visibility-changed-mixin'

new Vue({
  mixins: [VisibilityChanged],
  visibilityChanged(visible) {
    console.log(visible) // true -> visible, false -> hidden
  }
})

Readme

Keywords

Package Sidebar

Install

npm i @fiahfy/vue-visibility-changed-mixin

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

8.68 kB

Total Files

6

Last publish

Collaborators

  • fiahfy