react-motion
Advanced tools
Changelog
0.4.1 (January 26th 2016)
Changelog
0.4.0 (January 26th 2016)
spring
helper's format has changed from spring(10, [120, 12])
to spring(10, {stiffness: 120, damping: 12})
.style
, styles
and styles
of the three respective components now only accept either a number to interpolate, or a spring
configuration to interpolate. Previously, it accepted (and ignored) random key/value pairs mixed in, such as {x: spring(0), y: 'helloWorld'}
. y
Doesn't belong there and should be placed elsewhere, e.g. directly on the (actual react) style of the component you're assigning the interpolating values on.TransitionMotion
got an all-around clearer API. See the upgrade guide and README section for more.Motion
's' defaultStyle
, informally accepted the format {x: spring(0)}
. This is now officially unsupported. The correct format has always been {x: 0}
. Setting a default style of {x: spring(whatever)}
did not make sense; the configuration only applies for a style
, aka destination value. Same modification applies to StaggeredMotion
and TransitionMotion
's defaultStyles
& willEnter
.TransitionMotion
's willEnter
/willLeave
's signature has changed.reorderKeys
helper is no longer needed thanks to the changes to TransitionMotion
. It's now removed.spring
has acquired a new field as part of the new signature: precision tuning!Changelog
0.3.1 (October 14th 2015)
null
and undefined
in style
/styles
. #181src/
folder is now exposed on npm so that you can take advantage of Flow by using: import {Motion} from 'react-motion/src/react-motion'
directly, instead of the old, prebuilt import {Motion} from 'react-motion'
. This is experimental and intentionally undocumented. You'll have to adjust your webpack/browserify configurations to require these original source files correctly. No harm trying of course. It's just some type annotations =).Changelog
0.3.0 (September 30th 2015)
Changelog
0.2.7 (August 6th 2015)
Changelog
0.2.6 (July 31th 2015)
require('react-motion/native')
.Changelog
0.2.4 (July 29th 2015)
null
from children function. #101defaultValue
for specifying a... default value, upon mounting.TransitionSpring
's willLeave
API got simplified and now asks for an object as a return value instead of null
. null
is still supported, but is deprecated and will be removed in the next version. See the new docs on it here.presets
.