vue-on-visible
Advanced tools
Comparing version 0.2.3 to 0.2.4
{ | ||
"name": "vue-on-visible", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "scripts": { |
# Vue-On-Visible | ||
### Under Active Development | ||
Not stable. API will change. | ||
A collection of Vue components aimed to help you create better interactions with as elements enter and exit the viewport. | ||
@@ -8,2 +12,3 @@ | ||
This uses the [`Interaction Observer API`](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) and includes a [`polyfill`](https://github.com/w3c/IntersectionObserver/blob/master/polyfill/README.md) enabling support in the following browsers: | ||
<table> | ||
@@ -42,3 +47,2 @@ <tr> | ||
--- | ||
@@ -59,3 +63,5 @@ | ||
# Importing | ||
### Option #1 - A Vue Plugin | ||
Provides global access to all components | ||
@@ -68,10 +74,10 @@ | ||
Vue.use(OnVisible) | ||
``` | ||
# Usage | ||
Pass your component or markup as a `<slot>`: | ||
```javascript | ||
<OnVisible > | ||
<OnVisible> | ||
<div>My Awesome Component</div> | ||
@@ -78,0 +84,0 @@ </OnVisible> |
Sorry, the diff of this file is too big to display
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
1294024
84