react-planet icon indicating copy to clipboard operation
react-planet copied to clipboard

Add popout offset prop

Open candidia opened this issue 5 years ago • 1 comments

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.

candidia avatar May 03 '20 18:05 candidia

@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?

spoeck avatar May 03 '20 19:05 spoeck