mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
tweak trail animation
This commit is contained in:
parent
ca8f6e0ab1
commit
63520afee9
1 changed files with 3 additions and 3 deletions
|
@ -48,11 +48,11 @@ export class AnimatedTrail implements Trail {
|
||||||
this.trailAnimation = document.createElementNS(SVG_NS, "animate");
|
this.trailAnimation = document.createElementNS(SVG_NS, "animate");
|
||||||
// TODO: make this configurable
|
// TODO: make this configurable
|
||||||
this.trailAnimation.setAttribute("attributeName", "stroke-dashoffset");
|
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.trailElement.setAttribute("stroke-dashoffset", "10");
|
||||||
this.trailAnimation.setAttribute("from", "0");
|
this.trailAnimation.setAttribute("from", "0");
|
||||||
this.trailAnimation.setAttribute("to", `-20`);
|
this.trailAnimation.setAttribute("to", `-14`);
|
||||||
this.trailAnimation.setAttribute("dur", "0.2s");
|
this.trailAnimation.setAttribute("dur", "0.3s");
|
||||||
this.trailElement.appendChild(this.trailAnimation);
|
this.trailElement.appendChild(this.trailAnimation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue