Skip to content

Commit

Permalink
feat: speakers open animation (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRodrigues10 authored Nov 24, 2023
1 parent 4923c9c commit 2d897a8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions layout/Speakers/components/Schedule/Table/Block/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,15 @@ export default function Block({
</div>
</div>
</div>

<p className={showSpeaker ? "hidden" : ""}>{description}</p>
<div>
<p
className={`transition-max-height overflow-hidden duration-300 max-h-${
showSpeaker ? "0" : "96"
}`}
>
{description}
</p>
</div>
</div>
);
}

0 comments on commit 2d897a8

Please sign in to comment.