animate-svg
Advanced tools
Comparing version 0.0.7 to 0.0.8
{ | ||
"name": "animate-svg", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Animate SVG paths & lines", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,3 +17,3 @@ # animate-svg | ||
async foo() { | ||
async function foo() { | ||
// blabla | ||
@@ -27,2 +27,6 @@ const path = document.getElementById('some-svg-path-element') | ||
``` | ||
The function `animateSvg` accepts 3 parameters: | ||
- the `SVGPathElement` or `SVGLineElement` to animate | ||
- the **speed** at which the animation should occur (pixels per millisecond) | ||
- (optional) direction of the animation: `true` is for reverse animation, `false` is for normal | ||
@@ -29,0 +33,0 @@ [npm-url]: https://npmjs.org/package/animate-svg |
8232
38