Skip to content

Commit 80012a5

Browse files
committed
fix(sidenav): animate content resizing for side mode.
* Animates the `margin-left` and `margin-right` for the `sidenav-content` because otherwise when using `mode="side"` the sidenav content will just jump and not animate as same as the `push` mode.
1 parent e783494 commit 80012a5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/sidenav/sidenav-transitions.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ md-sidenav {
66
}
77

88
.md-sidenav-content {
9-
transition: transform $swift-ease-out-duration $swift-ease-out-timing-function;
9+
transition: {
10+
duration: $swift-ease-out-duration;
11+
timing-function: $swift-ease-out-timing-function;
12+
property: transform, margin-left, margin-right;
13+
}
1014
}
1115

1216
.md-sidenav-backdrop.md-sidenav-shown {

0 commit comments

Comments
 (0)