All Versions
10
Latest Version
Avg Release Cycle
138 days
Latest Release
2683 days ago
Changelog History
Changelog History
-
v3.1 Changes
September 10, 2017๐ v3.1 is here, featuring a vastly improved Readme and finally working npm releases again! That's right, you can now just do
npm install parallax-js
and be up-to-date again ๐โ Additionally, I have those features for you:
- ๐ฅ Breaking: added selector option, now by default all child elements of the scene will become layers, see Readme on how to restore legacy behaviour
- โ added hoverOnly option
- โ added inputElement option
- ๐ fixed bug when using deviceMotion events
- polyfilled Object.assign for IE compatibility
- โ added ready callback
- โ added destroy method
- ๐ some slight performance improvements
-
v3.0 Changes
May 06, 2017๐ Proudly presenting the first release after nearly 3 years!
Let's get the breaking changes out of the way first:
- ๐ the jQuery/Zepto version has been removed, use
new Parallax($('#scene').get(0))
if you need to - ๐ pointer events are disabled for layers by default, see the #interactivity section of the Readme for details on how to enable them
- HTML inline attributes take priority over the initial JS parameters
- ๐ support for old IE versions might be broken, please let me know if so and I'll try to fix it
Those were necessary to bring you these improvements and new features:
- ๐ general repository cleanup, more readable code, nicer coding style โจ
- ๐ a great build flow for contributors and those curious about the source code ๐
- ๐ with a better documentation ๐
- ๐ฑ lightning fast npm install process โก๏ธ
- ๐ฑ you can now actually
require
and/orimport
parallax-js ๐ฎ - ๐ bugfixes of course ๐พ
- ๐ increased performance and compatibility, especially for mobile devices ๐ฑ
- ๐ฑ depth can be set independently for X and Y axis ๐
- ๐ adjustable precision, set to the best value for both performance and optics ๐ฏ
๐ฑ Let us know what you think! And a big shoutout to all contributors, thank you for making this possible ๐
Choose compiled.zip from below if you want a drag-and-drop JS file.
- ๐ the jQuery/Zepto version has been removed, use
-
v2.1.3 Changes
May 12, 2014โก๏ธ Updated references.
-
v2.1.2 Changes
April 26, 2014- ๐จ Refactored out layer parsing to
updateLayers
method. See Behaviours: API Example for usage.
- ๐จ Refactored out layer parsing to
-
v2.1.1 Changes
April 26, 2014- โ Added
origin
method to the API.
- โ Added
-
v2.1.0 Changes
April 26, 2014- โ Added
origin
control to the behaviours.
- โ Added
-
v2.0.1 Changes
April 25, 2014- ๐ Fixed motion calculation bug.
-
v2.0.0 Changes
April 25, 2014- ๐จ Rewrote layer motion to use
px
rather than%
, allowing for layers to have a zero width and height footprint, which in turn allows for interactive elements to be positioned on multiple layers without blocking one another. - Created interactive.html to demonstrate the aforementioned functionality.
- ๐ Optimised internal
css
method so that prefixed properties are cached.
- ๐จ Rewrote layer motion to use
-
v1.1.1 Changes
April 20, 2014- ๐ Fixed minor typo bug that broke the jQuery version of the library.
-
v1.1.0 Changes
April 20, 2014- Updated mouse input to always be relative to the window rather than the page using
event.client[X|Y]
rather thanevent.page[X|Y]
. - โ Added
relativeInput
behaviour to switch the mouse input coordinate system to theelement
passed to the Parallax constructor. See README for details. - โ Added
clipRelativeInput
behaviour to limit the mouse input influence to the bounds of theelement
passed to the Parallax constructor. See README for details. - Created a new example: relative.html to demonstrate this new functionality.
- Updated mouse input to always be relative to the window rather than the page using