Skip to content

Commit

Permalink
fix(toggle): improve animation motion
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Oct 11, 2018
1 parent a7fae3b commit 5330574
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/src/components/toggle/toggle.md.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/toggle/toggle.md.vars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5330574

Please sign in to comment.