-
Notifications
You must be signed in to change notification settings - Fork 26.8k
Description
I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[X] Feature request
[ ] Documentation issue or request
[ ] Support request
What is the motivation / use case for changing the behavior?
Animating often requires the animated-elements to have certain styles only for the animation. E.g. when reducing the height to 0 the element may need to have overflow:hidden. Another example are component-wrappers like <app-component> do not work with opacity unless they have e.g. display: block. This particular styles may only be wanted for the animation, and not for general style. E.g. we need overflow:hidden for animating, but keep overflow:visible in general because of some tooltips.
This is why it would be nice to have a style() that will not but animated, but just applied for the animation.
Current behavior
I don't see any possibility of adding styles the last only for the animation but are not animated. I tried adding display: 'block' to a state and a transition with no success.
Expected behavior
New(?) function similiar to style() for use within animate()
Angular version: 4.x | 5.x.x