fix(global): tooltip animation

This commit is contained in:
仓鼠 2024-11-25 18:30:04 +08:00 committed by GitHub
parent e90b9cf4d4
commit 2e0c05f474
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,8 +92,8 @@ export function InteractiveMap({
<AnimatePresence mode="wait"> <AnimatePresence mode="wait">
{tooltipData && ( {tooltipData && (
<m.div <m.div
initial={{ opacity: 0, filter: "blur(10px)", scale: 0.8 }} initial={{ opacity: 0, filter: "blur(10px)" }}
animate={{ opacity: 1, filter: "blur(0px)", scale: 1 }} animate={{ opacity: 1, filter: "blur(0px)" }}
className="absolute pointer-events-none bg-white dark:bg-neutral-800 px-2 py-1 rounded shadow-lg text-sm dark:border dark:border-neutral-700" className="absolute pointer-events-none bg-white dark:bg-neutral-800 px-2 py-1 rounded shadow-lg text-sm dark:border dark:border-neutral-700"
key={tooltipData.country} key={tooltipData.country}
style={{ style={{