Skip to content

Commit 882944b

Browse files
authored
Merge pull request #30 from webrecorder/wr-tools-fixes
Completely hide and show linky when removing it
2 parents 4a9f3c4 + 334e16b commit 882944b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/archive-now.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,11 +763,20 @@ class ArchiveNow extends LitElement {
763763
this.linkyAnimation.name = "fadeOut";
764764
this.linkyAnimation.fill = "both";
765765
this.linkyAnimation.play = true;
766+
this.linkyAnimation.addEventListener(
767+
"sl-finish",
768+
() => {
769+
this.linkyAnimation!.style.display = "none";
770+
},
771+
{
772+
once: true,
773+
},
774+
);
766775
}
767776

768777
private addLinky() {
769778
if (!this.linkyAnimation || this.linkyAnimation.play) return;
770-
779+
this.linkyAnimation.style.display = "block";
771780
this.linkyAnimation.delay = 0;
772781
this.linkyAnimation.duration = 1000;
773782
this.linkyAnimation.name = "lightSpeedInRight";

0 commit comments

Comments
 (0)