mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 10:01:59 +08:00
fix(toggle): improve animation motion
This commit is contained in:

committed by
Manu MA

parent
a7fae3bf1f
commit
53305741a0
@ -63,6 +63,7 @@
|
||||
|
||||
transition-duration: $toggle-md-transition-duration;
|
||||
transition-property: transform, background-color;
|
||||
transition-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1);
|
||||
|
||||
background: var(--handle-background);
|
||||
|
||||
|
@ -53,7 +53,7 @@ $toggle-md-media-margin-bottom: $toggle-md-media-margin-top !d
|
||||
$toggle-md-media-margin-start: $toggle-md-media-margin-end !default;
|
||||
|
||||
/// @prop - Transition duration of the toggle icon
|
||||
$toggle-md-transition-duration: 300ms !default;
|
||||
$toggle-md-transition-duration: 160ms !default;
|
||||
|
||||
/// @prop - Opacity of the disabled toggle
|
||||
$toggle-md-disabled-opacity: .3 !default;
|
||||
|
Reference in New Issue
Block a user