material icon indicating copy to clipboard operation
material copied to clipboard

Add content to container element by transition

Open EladBezalel opened this issue 11 years ago • 8 comments

I had this discussion in the forum..

I want any element (div, md-content, etc..) to have transition when a content is added, like mentioned in the spec the material needs to grow. (Also related)

Here's an example

I did this kind of expanded list item as seen in Inbox, The only problem is that there's max-height transition because there's no way to do it otherwise.. I think it should be included somewhere..

Please if you know a better way edit this plunkr what do you think?

EladBezalel avatar Jan 03 '15 23:01 EladBezalel

@EladBezalel I believe there was an issue about this before. The consensus was that a future version of ng-animate will make it a lot easier to have material design style animations and transitions.

I don't know if you can currently achieve them but I'd look into the above more because you will probably need to overhaul whatever it is you do end up doing.

epelc avatar Jan 04 '15 04:01 epelc

@matsko - Any thoughts on this issue/feature?

ThomasBurleson avatar Jan 06 '15 16:01 ThomasBurleson

Btw - I updated the example you can review here

EladBezalel avatar Jan 09 '15 17:01 EladBezalel

@EladBezalel @ThomasBurleson it's tricky to do this stuff with how CSS and ngAnimate behave. There are plans to improve this with an additional module called ngAnimateLayout, but that's still being developed. For now I think the max-height method is your best bet.

matsko avatar Jan 15 '15 07:01 matsko

is there a milestone for nganimatelayout or can we already have a beta release somewhere ? i need such an animation for mid march. . . if not ready, i will try to implement sthg . . . if its planned, i ll wait a bit. regards

CedricDumont avatar Feb 02 '15 17:02 CedricDumont

Great issue. Waiting for it.

:+1:

david-gang avatar May 06 '15 12:05 david-gang

waiting too :+1:

noamamit92 avatar May 07 '15 08:05 noamamit92

+1

dohomi avatar May 27 '15 00:05 dohomi