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

Exposing animations via props

Open stephen opened this issue 9 years ago • 11 comments

thoughts? @jasonkuhrt

stephen avatar Dec 26 '15 22:12 stephen

I ended up addressing my own notes above, combining the override props into a single animationHandlers object that's overridden all-or-nothing, as well as changing the this binding on the handlers to passing the popover after playing more with my usecase.

stephen avatar Dec 29 '15 00:12 stephen

Thanks for putting this together @stephen! The current hard-coded animation solution is a sore point. I'm interested in using a different solution. I had/have been interested in trying https://github.com/chenglou/react-motion. I might have time to review this PR next week. Thanks again.

jasonkuhrt avatar Jan 07 '16 14:01 jasonkuhrt

Happy to help! The nice thing about this is that you can arbitrarily swap out any animation mechanism, react-motion or otherwise. Our usecase was to pair the handlers with facebook's rebound-js:

popover-rebound

stephen avatar Jan 07 '16 20:01 stephen

@jasonkuhrt any updates in this regard? I'd love to have the animations exposed as props.

macocha avatar Feb 03 '16 11:02 macocha

@macocha last week was my last at littlebits. Maybe @sch can take this up. If this project moves into a neutral repo I might continue to maintain the project but otherwise it's in littleBits' hands.

jasonkuhrt avatar Feb 03 '16 12:02 jasonkuhrt

Happy to take a look! I agree with @stephen that the best solution would be to provide hooks for animation to occur, regardless of what the underlying animation library is.

sch avatar Feb 03 '16 14:02 sch

Hi @sch - I've merged against master so things should be able to cleanly merge again. For API symmetry, I've kept enterStop so that animation implementors can take advantage of it.

Let me know if I can do anything else to help get this shipped!

stephen avatar Feb 21 '16 06:02 stephen

@sch Any updates?

schmooie avatar May 11 '16 03:05 schmooie

Very interested in this as well. Any plans to merge this?

GabiGrin avatar Jun 01 '16 08:06 GabiGrin

@jasonkuhrt Any chance this or #84 can be merged (since you tagged it as high priority)? We have CSS hacks in place right now to override the animation but an API solution would be so much more preferred!

Thank you so much!

oyeanuj avatar Nov 28 '17 07:11 oyeanuj

@alin-littlebits @seanschumer-littlebits Is it possible to get this merged?

fluke avatar Apr 26 '18 15:04 fluke