-
Notifications
You must be signed in to change notification settings - Fork 6.8k
md-sidenav no animation on close #1040
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
Comments
I just took a look at your issue and tried to reproduce it in a Plunker, but it seems to work as expected. You could probably modify the Plunker to demonstrate your issue. |
@erasethis It looks like your missing the outer |
yeah it doesn't animate, but it does when you call |
I think it isn't a bug. Better doc certainly helps here. |
Mode: 'Side' does not animate content no matter if you call Try to change 'push' to 'side' at plnkr that was supplied by @devversion and animation stops working. Sidenav is animated fine, but 'md-sidenav-content' is not when mode is 'side'. I have tested that on ng2 2.0.1 and ng2-md alpha.9-3 |
Webkit in older mobile devices (i.e. Android 4.4) require the vendor css properties which are not defined. That's why adding the styles in the application css as stated in the bug report fixed things. I am testing with an Android emulator to reproduce the issue. -webkit-transition: -webkit-transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1); I am trying to fix by add in the src/lib/sidenav-*-.sccs files but they are not written to the final css. |
fixed by #2486 |
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. |
- update StackBlitz for v13-next - update firebase-tools - fix dependabot issues - update to `[email protected]` to support NodeJS 16.x Closes angular#1038. Closes angular#1040. Closes angular#1042.
- update StackBlitz for v13-next - update firebase-tools - fix dependabot issues - update to `[email protected]` to support NodeJS 16.x Closes angular#1038. Closes angular#1040. Closes angular#1042.
- update StackBlitz for v13-next - update firebase-tools - fix dependabot issues - update to `[email protected]` to support NodeJS 16.x Closes angular#1038. Closes angular#1040. Closes angular#1042.
- update StackBlitz for v13-next - update firebase-tools - fix dependabot issues - update to `[email protected]` to support NodeJS 16.x Closes angular#1038. Closes angular#1040. Closes angular#1042.
- update StackBlitz for v13-next - update firebase-tools - fix dependabot issues - update to `[email protected]` to support NodeJS 16.x Closes #1038. Closes #1040. Closes #1042.
- update StackBlitz for v13-next - update firebase-tools - fix dependabot issues - update to `[email protected]` to support NodeJS 16.x Closes angular#1038. Closes angular#1040. Closes angular#1042.
- update StackBlitz for v13-next - update firebase-tools - fix dependabot issues - update to `[email protected]` to support NodeJS 16.x Closes angular#1038. Closes angular#1040. Closes angular#1042.
Bug, feature request, or proposal:
Bug
What is the expected behavior?
Menu should be animated (slide out) when closing
What is the current behavior?
Menu just vanishes when closing
What are the steps to reproduce?
Set 'opened' on md-sidenav to true, menu slides in, set 'opened' to false, poof menu is hidden instantly
Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: http://plnkr.co/edit/o077B6uEiiIgkC0S06dd
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, browsers are affected?
Angular 2 RC5, Material 2.0.0-alpha.7-2
Is there anything else we should know?
If I set these styles in my CSS, the menu behaves as expected:
md-sidenav:not(.md-sidenav-opened) {
-webkit-transition: -webkit-transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
transition: -webkit-transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
transition: transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
transition: transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1), visibility 400ms cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.md-sidenav-backdrop {
transition: background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1), visibility 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
}
The text was updated successfully, but these errors were encountered: