Releases: Akryum/vue-observe-visibility
Releases · Akryum/vue-observe-visibility
v1.0.0
Bug Fixes
- support
threshold
option not being a number (617b650)
v0.4.6
Fixed
- crash if no throttleOptions, closes #163
v0.4.5
New
- throttle leading options, closes #113
You can also pass a leading
option to trigger the callback the first time when the visibility changes without waiting for the throttle delay.
I can either be visible
, hidden
or both
.
<div v-observe-visibility="{
callback: visibilityChanged,
throttle: 300,
throttleOptions: {
leading: 'visible',
},
}">
Fixed
- SSR: Fix the rendering issue with ssr load #148
v0.4.4
New
- disable observer with falsy value, closes #70
Fixed
- fix: observer null issue (#39)
- throttle + once not working, closes #33
v0.4.3
New
once
option, closes #11. This is useful to create one-time animations as soon as the element becomes visible!
Improved
Fixed
In previous releases:
- uncesseray re-creation of observer, fixes #24
- #22 cannot read property 'bind' of undefined
- #18 threshold undefined
v0.4.0
New
- IntersectionObserver options #10
- Throttle #9
Fixed
- Not working in Chrome #16
v0.3.1
Breaking changes
- Now using rollup instead of webpack