-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update react-spring to the latest version 🚀 #28
Open
greenkeeper
wants to merge
2
commits into
master
Choose a base branch
from
greenkeeper/react-spring-6.0.0
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
|
|
Update to this version instead 🚀 CommitsThe new version differs by 13 commits.
See the full diff |
|
|
|
|
|
|
Update to this version instead 🚀 CommitsThe new version differs by 7 commits.
See the full diff |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The dependency react-spring was updated from
5.9.2
to6.0.0
.This version is not covered by your current version range.
If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
Release Notes for v6.0.0
React-spring 6.0
configs
config={{ duration: 1000, easing: ... }}
config={{ delay: 1000, ... }}
Springs
reverse
, which switchesfrom
andto
after
prop makes it easier to apply static values at the end of an animationTransitions
Transition
inherits fromKeyframes
now, which allows it to receive the same values that you can use in slots, meaning you can chain or even script transitionsunique
prop prevents two children with the same key to co-exist, which was an often asked for suggestion. If it is true, a fading-out item will vanish when an item with the same key comes in again, as opposed to forming a stack (which is still the default)reset
prop, in combination withunique
forces an incoming item to always start from scratch instead of adapting the fading-out item to take start-positiontrail
prop which takes a duration in msitems
and you would have to map over children yourself.items
andkeys
are Transitions sole source of truth now. You give a single function child instead of mappingTrails
reverse
prop can move a trail bottom-up instead of the default top-down which is more natural for items swinging in and outKeyframes
to: {...}
any longer since everything is interpolated to itParallax
react-spring/dist/addons
and could mark the start of convenience components or effects that don't belong anywhere elseUpgrading from 5.0 to 6.0
The changes made are mostly features, the api changes are slight and looking at the front page here will tell you immediately what to do. You will probably have to adapt your Transitions and Trail, Keyframes are backwards compatible. If you have used timings off
dist/addons
before, duration is now inbuilt (see above). A noticeable change also concerns spring config props, where before we would be closer to how the animated library interprets tension and friction we are now 1:1 compatible with react-motion.Commits
The new version differs by 21 commits.
eb9a83b
6.0.0
5a89490
docz
f624dd8
docs
4f9a02f
fix interp chaining
bc593cd
remove passthrough props
c033085
fixes
076094f
ton of changes
ea58faf
fix keyframe.cancel
eec35bc
make some progress debugging demos
b5f18be
animated overhaul
ab71841
trail.reverse, timing.delay fix, hooks.useRef
2fb31cd
strict mode compliance, spring/animatedTo fix
ae6364d
fix bugs in auto.key, keyframes, spring.didInject
b829c96
hooks first draft
294be79
inline md transitions
There are 21 commits in total.
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot 🌴