Releases: choozn/react-parallax-mouse
Stable Version 2.1.0
Stable Version 2.0.1
Changelog
→ Switch to react-spring
This version finally switches to react-spring
instead of relying on react-motion
. This fixes all problems related to react-motion (#24 #28) and leads to various other improvements.
→ End of support for middleware functions
Middleware functions as updateStyles won't be supported anymore in favor of the new useParallaxOffset
hook.
→ Renaming of some props
containerStyles
of MouseParallaxContainer is now namedcontainerStyle
.updateStyles
of MouseParallaxChild is now namedstyle
.springConfig
of MouseParallaxChild can now be found on the MouseParallaxContainer.
Stable Version 1.7.0
Changelog
→ Support for React 18.x
This version upgrades to a custom fork of react-motion
(https://github.com/choozn/react-motion - react-motion-prefixed
on npm).
This removes the warning in the console for dev builds in React 17.x (#7) and allows usage in React 18.x (#23).
Stable Version 1.6.0 | 1.6.1
Changelog
→ Performance
Fixed animations in certain browsers by making a CSS transition property optional.
This has a significant positive effect on performance. (#8)
Stable Version 1.5.1
Changelog
Minimal Performance Fix
→ Performance
Fixed removeEventListener call to prevent stacked Event Listeners.
Stable Version 1.5.0
Changelog
Introduced the new enabled
prop on the MouseParallaxContainer
.
→ Performance
Prevented unnecessary renders when disabling the effect. (happened before when using a workaround by setting the factors to 0, as event listeners were still assigned) → Now fixed by introducing the new prop enabled
.
Stable Version 1.4.2
Changelog
→ Performance
Fix for recent Performance Update.
Stable Version 1.4.1
Changelog
→ Performance
Fix for recent Performance Update.
Stable Version 1.4.0
Changelog
→ Performance
Prevented unnecessary CSS attributes and renders.
→ Flexibility
Added support for non MouseParallaxChild
children in the MouseParallaxContainer
.
Stable Version 1.3.1
Changelog
→ Compatibility
Added prefixed CSS attributes (such as -webkit-transform
) to support older browsers, as mentioned in issue #2.