Skip to content

md-sidenav no animation on close #1040

Closed
@erasethis

Description

@erasethis

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);
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions