simpleParallax v4.2.0 Release Notes

Release Date: 2019-03-05 // about 1 year ago
  • 🚀 This release fix one major issue and improve performance and stability.

    Now even if you have a dozen of parallax images on the same page, they will all get proceed with the same request animation frame. The scripting task has been reduce by 4.

    Also, sometime the image went out of its container due to a wrong order of transform CSS. This issue exists since version 1 and give some hard time to solve it.

    • 🍱 ⚡️ #2ace14 - use animationFrame/getViewportOffset only once for all instances
    • 🍱 ⚡️ #8be0a8c - get translated value on init even if this current instance is not visible
    • 🍱 ⚡️ #e86ea09 - removed unrelevant gap for isVisible method
    • 🍱 🐛 #169314 - fix an issue where the image get parallax out of its original container
    • 🍱 ⚡️ #11 - Change internal behavior of some functions now that we're reusing RAF

    Contributor