Skip to content

Commit

Permalink
feat: animate search options entrance
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsvg committed Mar 10, 2021
1 parent 24c5dba commit c6c8d84
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/views/notes/notes-view.pug
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
17 changes: 17 additions & 0 deletions app/assets/stylesheets/_ui.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c6c8d84

Please sign in to comment.