From 63520afee9d751288e4764b3c430a34507c1eb00 Mon Sep 17 00:00:00 2001 From: dwelle <5153846+dwelle@users.noreply.github.com> Date: Thu, 3 Apr 2025 19:17:06 +0200 Subject: [PATCH] tweak trail animation --- packages/excalidraw/animated-trail.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/excalidraw/animated-trail.ts b/packages/excalidraw/animated-trail.ts index 214f66dc0..af6162e99 100644 --- a/packages/excalidraw/animated-trail.ts +++ b/packages/excalidraw/animated-trail.ts @@ -48,11 +48,11 @@ export class AnimatedTrail implements Trail { this.trailAnimation = document.createElementNS(SVG_NS, "animate"); // TODO: make this configurable this.trailAnimation.setAttribute("attributeName", "stroke-dashoffset"); - this.trailElement.setAttribute("stroke-dasharray", "10 10"); + this.trailElement.setAttribute("stroke-dasharray", "7 7"); this.trailElement.setAttribute("stroke-dashoffset", "10"); this.trailAnimation.setAttribute("from", "0"); - this.trailAnimation.setAttribute("to", `-20`); - this.trailAnimation.setAttribute("dur", "0.2s"); + this.trailAnimation.setAttribute("to", `-14`); + this.trailAnimation.setAttribute("dur", "0.3s"); this.trailElement.appendChild(this.trailAnimation); } }