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

Add popout offset prop #1

Open
bitofbreeze opened this issue May 3, 2020 · 1 comment
Open

Add popout offset prop #1

bitofbreeze opened this issue May 3, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@bitofbreeze
Copy link

If I have planet in a corner and want the satellites to do a full orbit, they will go off screen on the left and bottom. It would be really helpful to have the component be able to shift right and up on open to make space for the entire orbit to be on screen.

@spoeck
Copy link
Member

spoeck commented May 3, 2020

@CSFlorin you could change the values for tension, friction or mass in way that the bouncing is not that strong.
Another way could be that I expose the clamp prop of react-spring. It stops the animation immediately if it touch the bound of the container. It looks like this:
< br/>
clamp = false
withoutClamp

clamp = true
withClamp

Would it be an option for you to expose the clamp prop?

@jona7o jona7o added the enhancement New feature or request label Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants