parallaxbro
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -20,2 +20,4 @@ const ParallaxCollection = require('./ParallaxCollection'); | ||
this._stopAnimationFrame = false; | ||
this._jQuery(); | ||
@@ -45,4 +47,8 @@ this._cacheDOMElements(selector); | ||
unbind() { | ||
this._stopAnimationFrame = true; | ||
} | ||
_hydrateElements() { | ||
setTimeout(() => this._moveElements(0) ,0) | ||
setTimeout(() => this._moveElements(0) , 0); | ||
} | ||
@@ -82,2 +88,6 @@ | ||
const track = () => { | ||
if (this._stopAnimationFrame) { | ||
this._stopAnimationFrame = false; | ||
return; | ||
} | ||
var posY = window.pageYOffset; | ||
@@ -84,0 +94,0 @@ this._moveElements(posY); |
{ | ||
"name": "parallaxbro", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A powerful JS parallax framework", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
33585
10
897
1
210
0