mirror of
https://github.com/block/buzz.git
synced 2026-11-28 20:22:39 +00:00
fix(terminal): add subtle scale 0.97 → 1 on open/close animation
This commit is contained in:
@@ -86,10 +86,11 @@ export function TerminalPanel({ channelId, isOpen }: TerminalPanelProps) {
|
||||
{isOpen ? (
|
||||
<motion.div
|
||||
key="terminal-panel"
|
||||
initial={{ height: 0, opacity: 0 }}
|
||||
animate={{ height: heightPx + 12, opacity: 1 }}
|
||||
exit={{ height: 0, opacity: 0 }}
|
||||
initial={{ height: 0, opacity: 0, scale: 0.97 }}
|
||||
animate={{ height: heightPx + 12, opacity: 1, scale: 1 }}
|
||||
exit={{ height: 0, opacity: 0, scale: 0.97 }}
|
||||
transition={{ duration: 0.2, ease: "easeOut" }}
|
||||
style={{ transformOrigin: "bottom center" }}
|
||||
className="overflow-hidden px-4 pb-2 pt-1"
|
||||
>
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user