-
Notifications
You must be signed in to change notification settings - Fork 6.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
Add option to disable tab animations #13428
Comments
@jelbourn for the most part this works already with the |
@crisbeto just the tab body animation. My understanding is that using Another option here would be to introduce an alternate animation that looks better on desktop with very wide tab bodies (though still probably allowing disabling it). |
I see. In that case it would be better to introduce an input for the animation duration so people can also speed it up/slow it down, or set it to zero. |
That sounds good to me |
Adds the `animationDuration` input and the `MAT_TABS_CONFIG` injection token that can be used to configure the duration of the tab animation. Fixes angular#13428.
Adds the `animationDuration` input and the `MAT_TABS_CONFIG` injection token that can be used to configure the duration of the tab animation. Fixes angular#13428.
Adds the `animationDuration` input and the `MAT_TABS_CONFIG` injection token that can be used to configure the duration of the tab animation. Fixes #13428.
What are valid values for animationDuration? I was trying to have no animation happen. I used and received error
I thought maybe I needed '0ms' but then I received |
@leopardy it accepts a string. E.g. |
@crisbeto we should probably make |
Based off of the discussions on angular#13428. Handles values passed to `animationDuration` that don't have units, rather than allowing them to continue through to the `BrowserAnimationsModule` and to throw an error.
Based off of the discussions on angular#13428. Handles values passed to `animationDuration` that don't have units, rather than allowing them to continue through to the `BrowserAnimationsModule` and to throw an error.
Based off of the discussions on #13428. Handles values passed to `animationDuration` that don't have units, rather than allowing them to continue through to the `BrowserAnimationsModule` and to throw an error.
…r#14778) Based off of the discussions on angular#13428. Handles values passed to `animationDuration` that don't have units, rather than allowing them to continue through to the `BrowserAnimationsModule` and to throw an error.
…r#14778) Based off of the discussions on angular#13428. Handles values passed to `animationDuration` that don't have units, rather than allowing them to continue through to the `BrowserAnimationsModule` and to throw an error.
Based off of the discussions on #13428. Handles values passed to `animationDuration` that don't have units, rather than allowing them to continue through to the `BrowserAnimationsModule` and to throw an error.
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. |
@Input
tomat-tab-group
to disable the animationMAT_TABS_OPTIONS
provider to configure it globallyThe text was updated successfully, but these errors were encountered: