diff --git a/packages/bbui/src/Tooltip/Context.svelte b/packages/bbui/src/Tooltip/Context.svelte index 442672a9c1..68c4f1336d 100644 --- a/packages/bbui/src/Tooltip/Context.svelte +++ b/packages/bbui/src/Tooltip/Context.svelte @@ -6,6 +6,7 @@ export let anchor export let visible = false export let offset = 0; + export let noAnimation = false $: target = getContext(Context.PopoverRoot) || "#app" @@ -67,8 +68,10 @@ fill: "forwards" }; + if (!noAnimation) { currentTooltip.animate(fadeIn, fadeInTiming); previousTooltip.animate(fadeOut, fadeOutTiming); + } // Bypass animations if the tooltip has only just been opened if (initialShow) { @@ -115,6 +118,7 @@ style:height={`${currentTooltipHeight}px`} class="tooltip" class:visible={visible || hovering} + class:noAnimation >