Releases: FormidableLabs/renature
SSR ⚡
In this release, we add support for using renature
in Node.js environments for server-side rendering. Previously, using renature
in server-rendered React applications would result in a runtime error.
Fixed
- Fallback to
Date.now
in lieu ofperformance.now
in Node.js environments when tracking frame timestamps inrAF
. PR by @parkerziegler here.
User-configurable G parameter 🌌
In this release, we allow users to supply their own value for G
, the Universal Gravitational Constant, in the configuration of useGravity
and useGraviyt2D
hooks. This allows users to achieve similar animation effects without needing to provide extremely large mass values for the mover
and attractor
.
Added
- ✨ A user-configurable
G
parameter for theuseGravity
anduseGravity2D
hooks. PR by @parkerziegler here.
Normalized parser and interpolator structures 🧮
In this release, we added type support for animating SVG elements, normalize our parser and interpolator structure, and include better support complex CSS properties like transform
and box-shadow
. We also released a new iteration of our docs site on react-static
v7 – live here.
Added
- Type support for SVG elements. PR by @parkerziegler here.
- ✨ Add support for
box-shadow
as an animatable CSS property. PR by @parkerziegler here.
Fixed
- Normalize parser and interpolator structure and move them to separate directories. PR by @parkerziegler here.
- Improvements to our docs site and a migration to
react-static
v7. PR by @parkerziegler here.
💅 Initial Release
This release represents the first publish of renature!