Skip to content

Commit

Permalink
Fade break modal
Browse files Browse the repository at this point in the history
  • Loading branch information
jouni-kantola committed Apr 1, 2024
1 parent 9deb59c commit c05e06a
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions resources/scripts/App.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<template>
<BreakAlert
v-if="onBreak"
:timeLeft="`${formatTime(timeRemaining)}`"
@alertClosed="endBreak"
/>
<Transition name="fade">
<BreakAlert
v-if="onBreak"
:timeLeft="`${formatTime(timeRemaining)}`"
@alertClosed="endBreak"
/>
</Transition>
<Timer
:minutes="timeRemaining[0]"
:seconds="timeRemaining[1]"
Expand Down Expand Up @@ -250,4 +252,14 @@ async function randomizeTeamOrder() {
padding: 0 0.5rem;
margin: 0;
}
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.5s ease-in;
}
.fade-enter-from,
.fade-leave-to {
opacity: 0;
}
</style>

0 comments on commit c05e06a

Please sign in to comment.