feat: animate search options entrance

This commit is contained in:
Baptiste Grob
2021-03-10 17:26:21 +01:00
parent 24c5dba4e9
commit c6c8d842da
2 changed files with 18 additions and 1 deletions

View File

@@ -26,7 +26,7 @@
ng-click='self.clearFilterText();',
ng-show='self.state.noteFilter.text'
) ✕
label.sk-panel-row.justify-left.mt-2(
label.sk-panel-row.justify-left.mt-2.animate-slide-in-top(
ng-if='self.state.searchIsFocused || self.state.searchOptionsAreFocused || self.state.authorizingSearchOptions'
style="padding-bottom: 0"
)

View File

@@ -97,6 +97,23 @@ $screen-md-max: ($screen-lg-min - 1) !default;
justify-self: flex-start;
}
.animate-slide-in-top {
animation: slide-in-top .1s ease-out;
}
@keyframes slide-in-top {
0% {
opacity: 0;
transform: translateY(-40%);
}
75% {
opacity: 1;
}
100% {
transform: translateY(0%);
}
}
.m-0 {
margin: 0;
}