Commit 4a0a0673 by Brian Talbot Committed by David Baumgold

Studio: revises syntax of calling preset animations for notifications

parent b4207471
...@@ -437,7 +437,7 @@ ...@@ -437,7 +437,7 @@
&.saving { &.saving {
[class^="icon"] { [class^="icon"] {
@include anim-rotateClockwise(3s, linear, infinite); @include animation(rotateCW 3.0s linear infinite);
width: 25px; width: 25px;
margin: -4px 10px 0 0; margin: -4px 10px 0 0;
@include transform-origin(52% 60%); @include transform-origin(52% 60%);
...@@ -627,16 +627,16 @@ ...@@ -627,16 +627,16 @@
pointer-events: none; pointer-events: none;
.prompt { .prompt {
opacity: 0.0;
} }
} }
// prompt showing/hiding // prompt showing
&.prompt-is-shown { &.prompt-is-shown {
.wrapper-view { .wrapper-view {
-webkit-filter: blur(2px) grayscale(25%); -webkit-filter: blur(($baseline/10)) grayscale(25%);
filter: blur(2px) grayscale(25%); filter: blur(($baseline/10)) grayscale(25%);
} }
.wrapper-prompt.is-shown { .wrapper-prompt.is-shown {
...@@ -644,8 +644,23 @@ ...@@ -644,8 +644,23 @@
pointer-events: auto; pointer-events: auto;
.prompt { .prompt {
@include anim-bounceIn(0.5s); @include animation(bounceIn 0.5s ease-in-out 1);
opacity: 1.0; }
}
}
// prompt hiding
&.prompt-is-hiding {
.wrapper-view {
-webkit-filter: blur(($baseline/10)) grayscale(25%);
filter: blur(($baseline/10)) grayscale(25%);
}
.wrapper-prompt {
.prompt {
@include animation(bounceOut 0.5s ease-in-out 1);
} }
} }
} }
...@@ -665,11 +680,11 @@ ...@@ -665,11 +680,11 @@
// varying animations // varying animations
&.is-shown { &.is-shown {
@include anim-notificationsSlideUp(1s); @include animation(notificationSlideUp 1.0s ease-in-out 1);
} }
&.is-hiding { &.is-hiding {
@include anim-notificationsSlideDown(0.25s); @include animation(notificationSlideDown 0.25s ease-in-out 1);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment