Comments (5)
solved, try to install again. npm install --save rachmanzz/vue-inview. npm package not yet update
from vue-inview.
Can I see how you implement vue-inview? are you use "Magic properties" ?
from vue-inview.
sure thing, here is the most basic Vue component that seems to replicate the issue. scrolling down doesnt produce an error, but scrolling back up (or re-entering) does every time.
<template>
<div class="hello">
<div class="item" v-inview:style="{'background-color':'#eee'}">hello world</div>
<div class="item" v-inview:style="{'background-color':'#eee'}">hello world</div>
<div class="item" v-inview:style="{'background-color':'#eee'}">hello world</div>
<div class="item" v-inview:style="{'background-color':'#eee'}">hello world</div>
<div class="item" v-inview:style="{'background-color':'#eee'}">hello world</div>
<div class="item" v-inview:style="{'background-color':'#eee'}">hello world</div>
</div>
</template>
<script>
import Vue from 'vue';
import Inview from 'vueinview';
Vue.use(Inview);
export default {
name: 'hello',
data() {
return {
msg: 'Hello World',
};
},
};
</script>
<style scoped>
.item{
height:100vh;
margin-bottom:20px;
transition:background-color 1s ease;
}
</style>
and here are the relevant dependencies from my package.json
"dependencies": {
"vue": "^2.3.3",
"vue-router": "^2.6.0",
"vueinview": "^0.3.0"
},
many thanks!
from vue-inview.
looks good to me, thanks!
from vue-inview.
you are welcome
from vue-inview.
Related Issues (17)
- Get element in methods. HOT 2
- 'querySelectorAll' error with class names HOT 2
- Next Version HOT 1
- How can I check if an element is fully viewed HOT 2
- Offset and threshold are undefined HOT 7
- yarn check fails HOT 3
- File pattern error HOT 1
- How to set Offset HOT 1
- ONly addinging class on first load... not on scroll HOT 1
- Custom animations HOT 3
- Uncaught ReferenceError: _$mdf is not defined HOT 2
- firing on component load HOT 4
- ie9 compatibility HOT 1
- Browser compatibility
- el is not defined HOT 1
- High CPU usage in "Magic properties" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-inview.