Parallax Engine that reacts to the orientation of a smart device
OTHER License
Bot releases are hidden (Show)
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:
Published by reneroth over 7 years ago
Proudly presenting the first release after nearly 3 years!
Let's get the breaking changes out of the way first:
new Parallax($('#scene').get(0))
if you need toThose were necessary to bring you these improvements and new features:
require
and/or import
parallax-js 😮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.
Published by wagerfield over 10 years ago
Updated references.
Published by wagerfield over 10 years ago
updateLayers
method. See Behaviours: API Example for usage.Published by wagerfield over 10 years ago
origin
method to the API.Published by wagerfield over 10 years ago
origin
control to the behaviours.Published by wagerfield over 10 years ago
Published by wagerfield over 10 years ago
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.css
method so that prefixed properties are cached.Published by wagerfield over 10 years ago
Published by wagerfield over 10 years ago
event.client[X|Y]
rather than event.page[X|Y]
.relativeInput
behaviour to switch the mouse input coordinate system to the element
passed to the Parallax constructor. See README for details.clipRelativeInput
behaviour to limit the mouse input influence to the bounds of the element
passed to the Parallax constructor. See README for details.Published by wagerfield over 10 years ago