chenglou / chenglou/react-motion

How to always use 'default styles' from subsequent render on Motion?

Open
#411 1 comment 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

Hi,
I see that for motion
```
Note that during subsequent renders, this prop is ignored. The values will interpolate from the current ones to the destination ones (specified by style).
```
Is there a way to make animation always start from default styles on subsequent render?

Use case

Or case has pages appearing from left to right and for case when we have page 1, then page 2 and page 1 again - page 1 on 2nd appearance starts animating from right instead of left as expected. How can we make it *always* start from left no matter what element ended with.

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.