chenglou / chenglou/react-motion

why updating style onRest doesn't work?

Open
#390 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
21.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

[DEMO on Codepen](https://codepen.io/lzl124631x/pen/XNJrMM?editors=1010)

Expect: click the cube and it goes to right 300px and then down 300px
Actual: the cube only goes right 300px

I updated the style in function onRest and it successfully sets the style, however Motion doesn't work.

---

BTW, what is the standard way to implement a sequence of tween using react-motion? Something like [GSAP TimelineLite](http://greensock.com/timelinelite)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.