Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable animation #8

Closed
nirsnappy opened this issue Mar 18, 2019 · 4 comments
Closed

disable animation #8

nirsnappy opened this issue Mar 18, 2019 · 4 comments

Comments

@nirsnappy
Copy link

hi we want to disable animation on mobile, transitionMount={false} didnt work for us.
any other options we miss ?

@drcmda
Copy link
Owner

drcmda commented Mar 18, 2019

It should be possible to give it a config with immediate set to true.

<Grid config={{ immediate: true }} ... />

@nirsnappy
Copy link
Author

thanks for the response.
amm i actually can't see the differences with it or without it .
any other ideas ? :)
(i can still see the animation of the grid items coming from left side to the screen)

@drcmda
Copy link
Owner

drcmda commented Mar 19, 2019

i was confused, immediate isn't part of the config, but the spring. the spring itself needs to get this property.

The easiest right now would probably to base on this https://codesandbox.io/s/26mjowzpr?from-embed and make your own rules. if you set immediate: true in there, it will work.

@drcmda
Copy link
Owner

drcmda commented Mar 19, 2019

Or make a quick PR if you need it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants