Skip to content

how to create a moving and flashing star #1715

Answered by joshuaellis
ethanruiyu asked this question in Support
Discussion options

You must be logged in to vote

You were updating the state to change the values of your spring, which is okay if its one value or another, but I wouldn't advising doing it like you were doing it – updating in an interval.

You might find it easier to use the imperative API we provide as can be seen in this code sandbox – https://codesandbox.io/s/hopeful-pike-kvsju?file=/src/App.js

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joshuaellis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1714 on October 14, 2021 07:44.