Socket
Socket
Sign inDemoInstall

appearjs

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    appearjs

tell if a dom element appeared or disappeared.


Version published
Weekly downloads
10
increased by100%
Maintainers
1
Install size
13.9 kB
Created
Weekly downloads
 

Readme

Source

appearjs

tell if a dom element appeared or disappeared.

demo

var appearInstance = lib.appear.init({
    container: '#container', // optional, document by default.
    cls: 'lib-appear', // optional
    once: true, // optional
    x: 0, // opitonal
    y: 0, // optional
    onAppear: function(){} // callback.
});

instance API

  • appearInstance.bind(node)
  • appearInstance.fire()
  • appearInstance.reset(opts)

static API

  • lib.appear.init(options)
  • lib.appear.fireAll()

events

  • _appear

element.addEventListener('_appear', function(ev){});

  • _disappear

element.addEventListener('_disappear', function(ev){});

  • evt object

evt.data.direction(top|right|bottom|left|none)

Keywords

FAQs

Last updated on 12 May 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc