react-spring simple examples #972
Replies: 17 comments 49 replies
-
hey I tried to copy your first and second example to learn but I'm getting error on |
Beta Was this translation helpful? Give feedback.
-
I'd love to see an example with an externally defined svg file (see #989) |
Beta Was this translation helpful? Give feedback.
-
Added an example of animating a number. https://bradwoods.io/guides/react-spring/animate-a-number |
Beta Was this translation helpful? Give feedback.
-
Added a config example - https://bradwoods.io/guides/react-spring/config |
Beta Was this translation helpful? Give feedback.
-
Added a config presets example - https://bradwoods.io/guides/react-spring/config-presets |
Beta Was this translation helpful? Give feedback.
-
@bradwoods Thanks for these examples, really helpful! I'm struggling with a repeating useChain. I want to animate three dots (scale to 1.2 and back) and the second dot is starting before the first one is finished so it's a nice wave. Do you know / have an example what's best practice for these kind of animations? :) |
Beta Was this translation helpful? Give feedback.
-
Hi @bradwoods Thanks for your examples. I am struggling to create an animated Window Scrollspy. Sandbox here - https://codesandbox.io/s/react-spring-scrollspy-gei79 The issue is, if you click on The issue starts, when user manually scrolls to some other place, say, the user clicks on Not sure, what I am doing wrong, or what particular API or config I am missing, due to which this is troubling me. |
Beta Was this translation helpful? Give feedback.
-
Added a chaining transitions example - https://bradwoods.io/guides/react-spring/transition-chaining |
Beta Was this translation helpful? Give feedback.
-
Hi Brad, I am hoping you can help me with an example. I am trying to replicate this animation which I did using CSS Transitions in React Spring. So far I have gotten this far https://codesandbox.io/s/suspicious-tharp-yru1v?file=/src/App.js. I can technically finish the animation by using two more useSpring functions to animate the bottom span, but considering the bottom span is using the same animation as the top span, but just with negative values instead of positive values, I figure there should be a more efficient way of doing this? |
Beta Was this translation helpful? Give feedback.
-
New examples design out. Let me know if I can change anything to make things easier. https://bradwoods.io/guides/react-spring |
Beta Was this translation helpful? Give feedback.
-
Added how to reset a transition example - https://bradwoods.io/guides/react-spring/transition-reset |
Beta Was this translation helpful? Give feedback.
-
Added on-frame callback example - https://bradwoods.io/guides/react-spring/callback-on_frame |
Beta Was this translation helpful? Give feedback.
-
Added animation on-complete callback example - https://bradwoods.io/guides/react-spring/callback-on_complete |
Beta Was this translation helpful? Give feedback.
-
Using react-spring in react-three-fiber - https://bradwoods.io/guides/react-spring/with-react-three-fiber |
Beta Was this translation helpful? Give feedback.
-
Thanks for these examples, getting into react-spring now! |
Beta Was this translation helpful? Give feedback.
-
Use duration - https://examples.bradwoods.io/react-spring/transition-duration |
Beta Was this translation helpful? Give feedback.
-
Hi, Brad! Would like to know how I can make this kind of animation possible.. I only animated simple ones and being challenged by this one: https://share.getcloudapp.com/X6uexJr6 Will it be better to animate it as a single SVG or separate SVGs? |
Beta Was this translation helpful? Give feedback.
-
I started a list of simple examples of react-spring for anyone getting started. Let me know if you are after anything specific and I'll add it.
https://examples.bradwoods.io/react-spring
Beta Was this translation helpful? Give feedback.
All reactions