Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Added notify and drawer default CSS animations #531

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
2 changes: 1 addition & 1 deletion less/core/drawer.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}

.drawer:not(.disable-animation) {
.transition(left @duration ease-in, right @duration ease-in, transform @duration ease-in, opacity @duration ease-in;);
.transition(left var(--drawerDuration) @animation-easing, right var(--drawerDuration) @animation-easing, transform var(--drawerDuration) @animation-easing, opacity var(--drawerDuration) @animation-easing;);
oliverfoster marked this conversation as resolved.
Show resolved Hide resolved
opacity: 0;

&.is-position-auto,
Expand Down
4 changes: 2 additions & 2 deletions less/core/notify.less
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@


.notify:not(.disable-animation) > .notify__popup {
.transition(margin-top @duration, top @duration, transform @duration ease-in, opacity @duration ease-in, height @duration ease-in;);
.transition(margin-top 0.4s @animation-easing, top 0.4s @animation-easing, transform 0.4s @animation-easing, opacity 0.4s @animation-easing, height 0.4s @animation-easing;);
opacity: 0;
transform: translateY(0%);

Expand All @@ -124,7 +124,7 @@
}

.notify:not(.disable-animation) > .notify__shadow {
.transition(opacity @duration ease-in;);
.transition(opacity 0.4s @animation-easing;);
opacity: 0;

.anim-show-after& {
Expand Down