Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit b001aec

Browse files
authored
fix(drawer): Align open & close animations to spec (#976)
Fixes #646 Spec: * [Natural easing curves](https://material.io/guidelines/motion/duration-easing.html#duration-easing-natural-easing-curves) * [Movement in and out of screen bounds](https://material.io/guidelines/motion/movement.html#movement-movement-in-out-of-screen-bounds)
1 parent 42df9da commit b001aec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/mdc-drawer/slidable/_variables.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
$mdc-slidable-drawer-transition-close-time: .13s;
18-
$mdc-slidable-drawer-transition-open-time: .33s;
19-
$mdc-slidable-drawer-transition-close: mdc-animation-enter(transform, $mdc-slidable-drawer-transition-close-time);
17+
$mdc-slidable-drawer-transition-close-time: .195s;
18+
$mdc-slidable-drawer-transition-open-time: .225s;
19+
$mdc-slidable-drawer-transition-close: mdc-animation-exit-temporary(transform, $mdc-slidable-drawer-transition-close-time);
2020
$mdc-slidable-drawer-transition-open: mdc-animation-enter(transform, $mdc-slidable-drawer-transition-open-time);

0 commit comments

Comments
 (0)