Comparing version 0.1.5 to 0.1.6
{ | ||
"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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
13375
42
0