Skip to content

Commit

Permalink
fix(DatePicker): transition animation has been reversed
Browse files Browse the repository at this point in the history
  • Loading branch information
N00nDay committed Apr 26, 2023
1 parent f6bba59 commit d91a2e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/datepicker/DatePicker.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@
{#key calendarDays}
<div
class="absolute inset-0 p-3"
in:fly|local={{ x: transitionDirection === 'forward' ? -250 : 250, duration: 250 }}
out:fly|local={{ x: transitionDirection === 'forward' ? 250 : -250, duration: 250 }}
in:fly|local={{ x: transitionDirection === 'forward' ? 250 : -250, duration: 250 }}
out:fly|local={{ x: transitionDirection === 'forward' ? -250 : 250, duration: 250 }}
>
{#each Array(5) as _, weekIndex}
<div class="date-container flex items-center justify-evenly">
Expand Down

0 comments on commit d91a2e9

Please sign in to comment.