material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

MaterialTransitionGroup

Open darkyen opened this issue 11 years ago • 8 comments

Adding a polymer like animation element/component for full page transitons might be very helpful :D as of now the CSSTransitionGroup is limited

darkyen avatar Feb 14 '15 12:02 darkyen

Yeah. I guess that's the only thing we're missing.

luisrudge avatar Feb 19 '15 12:02 luisrudge

I've been attempting to work on a solution for this. However it will need to sit in the router layer. Haven't had too much success. Willing to bounce ideas around though.

yhbrandon avatar Feb 19 '15 20:02 yhbrandon

I think it can be done as polymer does it ... react will only create a new instantiation of your component if required usually it just changes props that could be used as a root of where transitions are required then get the elements of final and first state with same classname and call a transition there On Feb 20, 2015 1:40 AM, "Brandon Clark" [email protected] wrote:

I've been attempting to work on a solution for this. However it will need to sit in the router layer. Haven't had too much success. Willing to bounce ideas around though.

— Reply to this email directly or view it on GitHub https://github.com/callemall/material-ui/issues/333#issuecomment-75126327 .

darkyen avatar Feb 19 '15 20:02 darkyen

@darkyen This is possible and is somewhat similar to how react-router "achieves" this result. However this requires you to load all "pages" on initial load and store them on the page. I don't think it is optimal to have all "pages" rendered into the page and use classes with state transitions. If there is a heavy data load, the browser will start seeing some major hits.

I'm going to try and leverage flux stores to hold the state until a view requirement is met. But not sure if this will work either.

yhbrandon avatar Feb 25 '15 22:02 yhbrandon

So, https://github.com/chenglou/react-animation was released yesterday - how would one use that with Material-UI, if you want to do page transitions and what not?

seivan avatar Jul 04 '15 15:07 seivan

I think React-transition group already helps achieve all these. Closing this.

tintin1343 avatar Apr 25 '16 22:04 tintin1343

Not it does not. React is extremely primitive when talking about animations.

darkyen avatar Apr 25 '16 22:04 darkyen

Closing this issue for #4117.

oliviertassinari avatar Jun 29 '17 22:06 oliviertassinari