diff --git a/src/CopyButton/CopyButton.svelte b/src/CopyButton/CopyButton.svelte index 78ecd259..0738ed14 100644 --- a/src/CopyButton/CopyButton.svelte +++ b/src/CopyButton/CopyButton.svelte @@ -1,5 +1,9 @@ - { + animation = 'fade-out'; + }, feedbackTimeout); }}" on:animationend + on:animationend="{({ animationName }) => { + if (animationName === 'hide-feedback') { + animation = undefined; + } + }}" > - + +