Skip to content

Commit

Permalink
ボトムバーではメニューアニメーションの上下を逆にするように
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Oct 11, 2020
1 parent ed10408 commit 2a86337
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions src/client/app/animation.styl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@
transform: scaleY(0);
}

.zoom-in-bottom-enter-active,
.zoom-in-bottom-leave-active {
opacity: 1;
transform: scaleY(1);
transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
transform-origin: center bottom;
}
.zoom-in-bottom-enter,
.zoom-in-bottom-leave-active {
opacity: 0;
transform: scaleY(0);
}

.entranceFromTop {
animation-duration: 0.5s;
animation-name: entranceFromTop;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</span>
<mk-avatar class="avatar" :user="$store.state.i"/>
</button>
<transition name="zoom-in-top">
<transition :name="navbar === 'top' ? 'zoom-in-top' : 'zoom-in-bottom'">
<div class="menu" :class="navbar" v-if="isOpen">
<ul>
<li @click="closeMenu">
Expand Down

0 comments on commit 2a86337

Please sign in to comment.