New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No direct way to disable animation children #16483
Comments
Being able to disable animations for an element and all its children would be amazing! Is there an easy way to do this in the meantime until this is released? Currently I have to add an extra transition to each element I want disable animations on that resets back to a normal state in 0ms... |
@matsko |
Yes sorry there was a bug that this PR (#18064) intended to fix, but it failed to make the release. It will show up in this week's release. In the meantime, to get around the error, just add an empty animation to the component that contains the @Component({
animations: [
trigger('removeThisWhen301isOut', [])
]
}) |
@lokeshdaiya 5344be5 has fixed the issue and is now in master. The release for it should pop up within the next couple of days. |
Thanks @matsko for update. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Up to this point there has been a big effort to refactor the animation code and make it runtime compatible and to introduce new features such as query, variables and router animations. There is, however, no support for disabling animations on a DOM-structure level.
Here is what is in mind for doing this:
The text was updated successfully, but these errors were encountered: