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

Optional animations

Open widmoser opened this issue 9 years ago • 14 comments

This pull request adds an attribute animate that needs to be set to "true" in order for the animations to be activated.

This can be used as a work-around for issue #161.

widmoser avatar Dec 04 '15 14:12 widmoser

I was thinking about something like this, but left that out, because I couldn't see a need to dynamically dis/enable animations. I suppose an application will either animate or not. To disable animation, just declare empty animate-{row,column} classes. But I guess there could be a use case for that.

petrsimon avatar Dec 04 '15 14:12 petrsimon

I suppose it might be worth trying to turn the animation off on drag start and then turn it back on...

petrsimon avatar Dec 04 '15 15:12 petrsimon

Awesome, this looks great! Thanks for the tests.

I do think that it'd be better to have animations on by default instead of off - that way you can still disable and it's not a major change.

SomeKittens avatar Dec 05 '15 02:12 SomeKittens

It occurred to me, that the purpose of the animations is really to animate the collapsing/toggling. So I would suggest that we add the classes before toggling a container and remove it afterwards. What do you think.

petrsimon avatar Dec 05 '15 06:12 petrsimon

Hm, that'd be interesting to see, mind putting together that in a Plunkr?

SomeKittens avatar Dec 05 '15 19:12 SomeKittens

@SomeKittens I'd like to do that later this week, if time permits. But will wait for @widmoser 's reaction since s/he seems to be very active at the moment.

petrsimon avatar Dec 07 '15 16:12 petrsimon

@petrsimon, @SomeKittens I turned on animations by default in the PR. I like the idea to limit animations to collapsing/toggling as it might also fix the issues reported in #161, but I think it would be better to create a separate PR for this. I can look into it at some point, but at the moment #166 has more priority for me.

widmoser avatar Dec 09 '15 09:12 widmoser

Ok, I will hold back :)

petrsimon avatar Dec 09 '15 13:12 petrsimon

Something I was also thinking about is to have a look at whether it would be possible to simplify the collapse/toggle implementation and after that do everything related to it (persisting state, etc.), because right now I am not very confident in changing something in relation to it because I don't understand it fully. I'll probably have to examine the code in more detail :)

widmoser avatar Dec 09 '15 14:12 widmoser

@SomeKittens is there something else that needs to be done before merging this PR?

widmoser avatar Jan 05 '16 13:01 widmoser

@widmoser Hi, sorry. Work got busy and then it got worse. Trying to catch up now.

SomeKittens avatar Jan 29 '16 21:01 SomeKittens

Things look good, squash the commits into one and I'll bring it in.

SomeKittens avatar Jan 29 '16 21:01 SomeKittens

This PR has been pending for so long. Dear Dev team, could you please consider review the change and merge into upstream?

stanleyxu2005 avatar Oct 02 '16 12:10 stanleyxu2005

We need this, too. +1 vote for merging this!

jcford73 avatar Mar 24 '17 18:03 jcford73