parallax v3.1 Release Notes

Release Date: 2017-09-10 // over 2 years ago
  • 🚀 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

Previous changes from v3.0

  • 🚀 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/or import 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.