chenglou / chenglou/react-motion

Duplicated elements when using Motion component

Open
#583 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

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.

![Screen Shot 2019-12-30 at 11 35 53 AM](https://user-images.githubusercontent.com/889536/71597567-9b101580-2af8-11ea-9772-654c63482e60.png)

Here's the implementation:
```
{items.map(
({ image, content, style, defaultStyle, imageClass }, index) => (

{style => {
return (


{image}

)
}}

),
)}
```

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.