chenglou / chenglou/react-motion

how to use react-motion library with modals

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

I am using react-modal to create modals, and trying to slide the modal from bottom of page. For that i am trying react-motion TransitionMotion Component. My code is:
```
{ this.state.openNumberPopup &&

{ (interpolated) =>


{ interpolated.map(({ key, style, data }) =>

) }

}

}
```
where getStyles is
`getStyles = () => ({
opacity: spring(1),
scale: spring(1)
});`
but this is not working because modal component.

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.