Skip to content

Commit e55a400

Browse files
committed
fix: tooltip spring animation
Signed-off-by: Innei <tukon479@gmail.com>
1 parent 1579b08 commit e55a400

File tree

1 file changed

+1
-1
lines changed
  • packages/internal/components/src/ui/tooltip

1 file changed

+1
-1
lines changed

packages/internal/components/src/ui/tooltip/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const TooltipContent = ({
3535
<m.div
3636
initial={{ opacity: 0.82, scale: 0.95 }}
3737
animate={{ opacity: 1, scale: 1 }}
38-
transition={Spring.presets.snappy}
38+
transition={Spring.snappy(0.1)}
3939
>
4040
{/* https://github.com/radix-ui/primitives/discussions/868 */}
4141
<TooltipPrimitive.Arrow className="z-50 fill-white [clip-path:inset(0_-10px_-10px_-10px)] dark:fill-neutral-950 dark:drop-shadow-[0_0_1px_theme(colors.white/0.5)]" />

0 commit comments

Comments
 (0)