-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
The initial style() is applied with delay, when using stagger() #17412
Comments
Using Angular 4.2.2, the example from https://angular.io/api/animations/stagger also is not working as expected (so do all other tries of getting stagger to work). |
@maxschwarzmueller Looking over the code of this demo, I've managed to make it work with something like this:
for:
It seems that we also have to query for setting initial style. @matsko In the light of the recent "discovery", I think this is not an issue anymore, but rather the docs need a bit more improvement? EDIT: Sorry for all the above... I've just realized, it kind of isn't related to the code in my plnkr example :) I just got tangled in all the things I try lately, with all the new stuff the animations package provides us. And I'm also a bit tired right now. But I'm not going to delete it, maybe it's a scenario that will help others when coming across this. |
Just realized... my previous comment isn't 100% related to the issue. Just got tangled in all the things I keep trying lately, with the new stuff that the animations package provides us. Sorry about that @maxschwarzmueller |
@MrCroft Okay, I misunderstood you, too then ;). Still, the behavior seems to be unintended, you shouldn't have to query the element and change the style before you stagger() in my opinion. |
@maxschwarzmueller Yes, definitely. |
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. |
I'm submitting a ... (check one with "x")
Current behavior
When using stagger(), the initial style() is applied on each individual item, after the stagger delay.
Expected behavior
The initial style() should be applied to all matching items before stagger() kicks in.
Minimal reproduction of the problem with instructions
https://plnkr.co/edit/MWC78V9Hbukl1xD25wW2?p=preview
Please tell us about your environment:
Angular version: 4.2.1
Browser: all
EDIT: Seems that plnkr isn't working anymore... Noticed this yesterday (June 14th)
GET https://run.plnkr.co/DYWkt10odM0YhhTj/tslib 404 ()
and it's still broken. So, the above example isn't working anymore.The text was updated successfully, but these errors were encountered: