Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

appearjs

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appearjs - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

14

package.json
{
"name": "appearjs",
"version": "0.1.5",
"version": "0.1.6",
"description": "tell if a dom element appeared or disappeared.",

@@ -9,6 +9,2 @@ "main": "src/appear.js",

},
"repository": {
"type": "git",
"url": "https://github.com/MrRaindrop/appearjs"
},
"contributors": [

@@ -20,2 +16,6 @@ {

],
"repository": {
"type": "git",
"url": "https://github.com/MrRaindrop/appearjs"
},
"license": "MIT",

@@ -31,6 +31,2 @@ "dependencies": {},

},
"repository": {
"type": "git",
"url": ""
},
"keywords": [

@@ -37,0 +33,0 @@ "appear"

@@ -1,3 +0,41 @@

### appearjs
# appearjs
tell if a dom element appeared or disappeared.
### demo
```javascript
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)
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc