diff options
Diffstat (limited to 'src/stores/tooltipPosition.ts')
| -rw-r--r-- | src/stores/tooltipPosition.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/stores/tooltipPosition.ts b/src/stores/tooltipPosition.ts new file mode 100644 index 00000000..06b38fe1 --- /dev/null +++ b/src/stores/tooltipPosition.ts @@ -0,0 +1,12 @@ +import { cubicOut } from 'svelte/easing'; +import { tweened } from 'svelte/motion'; + +const tooltipPosition = tweened( + { x: 0, y: 0 }, + { + duration: 200 * 1.75, + easing: cubicOut + } +); + +export default tooltipPosition; |