You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] 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
When using an animation parameter inside stagger like stagger('{{ delay }}', [ the animation fails, because the parameter is not replaced.
Expected behavior
Parameters work inside stagger timings as well
Minimal reproduction of the problem with instructions
The entire Angular framework is on one side from being intuitive and reusable and simplicity and animation API is on another side. so so so unintuitive and unnecessarily complicated and weird. It's trying to follow functional programming while passing strings around as animation and I have to always look for examples because the docs make no sense and it's super tiring to read to be able to just create a simple fade animation with a variable passed in.
I'm sure even in Google devs try to avoid using it and resort to CSS animations instead.
What a disaster.
It's been 5? years since I started using Angular2, and my experience with animations API has been nothing but pain.
Can't believe it's been 5ish years since this API was announced, and it still does not support variables, wtf. That's like the most fundamental feature any animation library provides. 5 years
@xe4me I won't say that it doesn't have positives but for some reason I feel like animations isn't part of Angular, it's like a whole new language that I have to learn and a whole new way of thinking, so it ads extra learning curve.
I'm sure even in Google devs try to avoid using it and resort to CSS animations instead.
Please keep your personal peeves out of this discussion. Angular animations is powerful and provides a ground for creating animations outside the scope of CSS. Even if its syntax is on the complex side (and you're welcome to suggest a better one), its still learnable and is highly useable (I use it incessantly in enterprise level apps).
Can't believe it's been 5ish years since this API was announced, and it still does not support variables
This is a grossly wrong statement. Variables are supported, and they work well. If you read this issue properly you'd realize that people ask for animations parameters would be supported inside stagger() function too, which currently they are not.
That's like the most fundamental feature any animation library provides.
Variables are not are not fundamental to "any animation library". Most frameworks provide APIs to create CSS animations. Angular animates DOM elements with timers, and not many frameworks provide this OTB.
Activity
manekinekko commentedon Oct 18, 2017
Hi, can you link to a plunkr online demo?
@matsko is this a known issue?
heddendorp commentedon Oct 18, 2017
I added a plunkr @manekinekko
Hope it's sufficient
matsko commentedon Oct 23, 2017
Thank you for bringing this up. I will get to a fix shortly.
elvisbegovic commentedon Oct 24, 2017
it's me or this not working :
then in template simply use
@easeInOutartsys78 commentedon Apr 19, 2018
Hi,
Parameters inside stagger() don't work.
When it would be fixed ?
The problem still persist.
Thank's
sublimator commentedon Apr 23, 2018
super sad sad face
4 remaining items
xe4me commentedon Aug 13, 2019
The entire Angular framework is on one side from being intuitive and reusable and simplicity and animation API is on another side. so so so unintuitive and unnecessarily complicated and weird. It's trying to follow functional programming while passing strings around as animation and I have to always look for examples because the docs make no sense and it's super tiring to read to be able to just create a simple fade animation with a variable passed in.
I'm sure even in Google devs try to avoid using it and resort to CSS animations instead.
What a disaster.
It's been 5? years since I started using Angular2, and my experience with animations API has been nothing but pain.
Can't believe it's been 5ish years since this API was announced, and it still does not support variables, wtf. That's like the most fundamental feature any animation library provides. 5 years
tayambamwanza commentedon Aug 13, 2019
@xe4me I won't say that it doesn't have positives but for some reason I feel like animations isn't part of Angular, it's like a whole new language that I have to learn and a whole new way of thinking, so it ads extra learning curve.
AsafAgranat commentedon Aug 14, 2019
@xe4me,
Please keep your personal peeves out of this discussion. Angular animations is powerful and provides a ground for creating animations outside the scope of CSS. Even if its syntax is on the complex side (and you're welcome to suggest a better one), its still learnable and is highly useable (I use it incessantly in enterprise level apps).
This is a grossly wrong statement. Variables are supported, and they work well. If you read this issue properly you'd realize that people ask for animations parameters would be supported inside stagger() function too, which currently they are not.
Variables are not are not fundamental to "any animation library". Most frameworks provide APIs to create CSS animations. Angular animates DOM elements with timers, and not many frameworks provide this OTB.
fix(animations): fix stagger timing not handling params (#47208)
fix(animations): fix stagger timing not handling params (#47208)
angular-automatic-lock-bot commentedon Sep 22, 2022
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.