chenglou / chenglou/react-motion
Duplicated elements when using Motion component
Open
- Dominant language
- JavaScript
- Stars
- 21.9k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
We're using Motion in an image slider and all slides are duplicated when changing slides.
Here's a screenshot after interacting with the slider a few times. The slider starts with 5 slides wrapped in Motion components.

Here's the implementation:
```
{items.map(
({ image, content, style, defaultStyle, imageClass }, index) => (
{style => {
return (
)
}}
),
)}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.