Skip to content

Commit

Permalink
fix animation
Browse files Browse the repository at this point in the history
  • Loading branch information
fivaz committed Apr 17, 2024
1 parent 0cd9148 commit 9fbd4b6
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/lib/components/task-form/TaskForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -162,18 +162,17 @@
</label>
</div>

<Disclosure class="bg-white rounded-lg p-2" defaultOpen={true} let:open>
<Disclosure class="bg-white rounded-lg p-2" let:open>
<DisclosureButton class="flex justify-between w-full">
<span>Description</span>
<Icon class="w-5 h-5 {open ? 'rotate-90 transform' : ''}" src={ChevronRight} />
</DisclosureButton>
<Transition
enter="transition duration-100 ease-out"
enterFrom="transform scale-95 opacity-0"
enterTo="transform scale-100 opacity-100"
leave="transition duration-75 ease-out"
leaveFrom="transform scale-100 opacity-100"
leaveTo="transform scale-95 opacity-0"
class="transition-all duration-500 overflow-hidden"
enterFrom="transform opacity-0 max-h-0"
enterTo="transform opacity-100 max-h-36"
leaveFrom="transform opacity-100 max-h-36"
leaveTo="transform opacity-0 max-h-0"
>
<DisclosurePanel class="text-gray-500 pt-2 flex flex-col gap-2">
<div class="flex flex-col gap-2 w-full">
Expand Down

0 comments on commit 9fbd4b6

Please sign in to comment.