angular / angular

Deliver web apps with confidence 🚀
https://angular.dev
MIT License
96.08k stars 25.42k forks source link

Animation background color changes for state when using * #18522

Closed amaino closed 6 years ago

amaino commented 7 years ago

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

This was working for angular 4.1 but is now broken in later versions. We use a pulse animation looping back and forth between two states. The first state uses * to grab the current background color and then fades to the second state that is white it then loops back to the first state and so forth. Previously the color would be kept on the first state but now it is updated to white so the color stays white for the whole animation

Expected behavior

Be the same as in 4.1

Minimal reproduction of the problem with instructions

http://plnkr.co/edit/AXzKGgDR9ZHiAQDBCB89 Change to a higher version and see that the loop does not work anymore, click the button to start the animation

What is the motivation / use case for changing the behavior?

To be able too loop an animation without knowing the color from the beginning.


Angular version: >4.1
matsko commented 6 years ago

Looks like it's working on Angular master as of now. Please reopen if it's still an issue.

angular-automatic-lock-bot[bot] commented 5 years ago

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.