Skip to content

Commit

Permalink
Add easing argument to animation utils
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Sep 10, 2024
1 parent fe6c290 commit 011e4e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/base-styles/_animations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
}
}

@mixin animation__fade-in($speed: 0.08s, $delay: 0s) {
@mixin animation__fade-in($speed: 0.08s, $delay: 0s, $easing: linear) {
@include keyframes(__wp-base-styles-fade-in) {
from {
opacity: 0;
Expand All @@ -15,12 +15,12 @@
}


animation: __wp-base-styles-fade-in $speed linear $delay;
animation: __wp-base-styles-fade-in $speed $easing $delay;
animation-fill-mode: forwards;
@include reduce-motion("animation");
}

@mixin animation__fade-out($speed: 0.08s, $delay: 0s) {
@mixin animation__fade-out($speed: 0.08s, $delay: 0s, $easing: linear) {
@include keyframes(__wp-base-styles-fade-out) {
from {
opacity: 1;
Expand All @@ -31,7 +31,7 @@
}


animation: __wp-base-styles-fade-out $speed linear $delay;
animation: __wp-base-styles-fade-out $speed $easing $delay;
animation-fill-mode: forwards;
@include reduce-motion("animation");
}
Expand Down

0 comments on commit 011e4e1

Please sign in to comment.