-
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
From/To Keyframes animations break theirself and the router #14752
Comments
Same as #14752 ? |
@DzmitryShylovich haha, yes, you're right. I meant #14007... |
Well it could be possible that they share the same bug (or the same fault that we're not coding as it was intended, I don't know). |
A Bottom bar in the same view as md-tabs but not inside it. I get the exception -
|
I get this issue as well when changing the trigger before the animation completes:
|
I get this error also but in different situation. this one is working trigger("test",
[
transition("* => *",
[
style({'background-color': "#FFFFFF"}),
animate(500, style({'background-color': "#00FFFF"}))
])
]) and this one is not, only difference is that i dont set default trigger("test",
[
transition("* => *",
[
animate(500, style({'background-color': "#00FFFF"}))
])
]) |
Hi all. This looks like a bigger problem. Look at this https://plnkr.co/edit/JdctUV6hVfcOhdCbCyMk?p=preview it is quite simple. It demonstrates code that is above. First version is working, second version is not. Here is also demonstration of this problem. https://github.com/kukjevov/ng-universal-demo/tree/animation-error Yesterday i was trying new animation features at home and everything was working nicely. I pushed all changes and try them at work and i got error mentioned in this bug. I have 4 web browsers at work i tried FF 55 beta, Chrome 59, Edge 14 none of them worked. Also tried FF 54 and it worked. Today i came home and code which worked yesterday does not work anymore. Not even that plunker that i have provided. Well this looks like some changes in browsers. Weird thing is that it behaves randomly. So far i found out that this is connected with auto styles Can you please look at this @matsko, @IgorMinar because it looks like that it completely breaks animations. Thank you |
Is there list of css properties that cant be used for auto property computation? It looks like that problem is |
Another interesting observation. When i enabled dom.animations-api.core.enabled setting using Firefox |
Strange thing for me is, that the error does not occur in dev-environment. Also the styles work correctly in dev-env. After building the app, the error occurs and things are not correctly rendered because of it ... This is the set of animations I use:
|
Apparently this is supposed to be fixed in web-animation-js 4.3.1 (web-animations/web-animations-js#146) but I still get this error in Angular. Any idea why the animation above throws this error in FF still? |
Hey everyone. Sorry it took me so long to get to this issue. I'm having a hard time understanding what exactly is breaking here? If a CSS style is not included before its used then Angular should automatically fill it in (so if you miss With 4.x, there were some issues with this, but they did get fixed. @kukjevov @tommueller if this is still problematic then please let me know. |
@matsko I just tested this again using angular 4 and the new firefox quantum and the problem seems to be gone! thanks for the reminder, still had the buggy parts (padding) commented! |
If somebody wants to fix it but doesn't want to upgrade his angular version yet, here's a workaround: import {
AnimationDriver,
ɵNoopAnimationDriver as NoopAnimationDriver,
ɵsupportsWebAnimations as supportsWebAnimations,
ɵWebAnimationsDriver as WebAnimationsDriver
} from '@angular/animations/browser';
export function animationDriverFactory(platform) {
if (platform.CHROME && supportsWebAnimations()) {
return new WebAnimationsDriver();
}
return new NoopAnimationDriver();
}
const PROVIDERS = [
{ provide: AnimationDriver, useFactory: animationDriverFactory, deps: [RtPlatform] }
]; |
Closing as obsolete |
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
Angular fails to execute Web Animations API if you use from/to keyframes. I've found something here, but I don't know how I could make use of what is written there. Furthermore, the router will fail too after the manifestation of the bug.
In Firefox the console says :
But in Chrome:
Expected behavior
Smooth transition between two declared states.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
From/to keyframes in animations.
Please tell us about your environment:
Language: [TypeScript]
Node (for AoT issues):
node --version
= 6.9.4The text was updated successfully, but these errors were encountered: