Usage
Here's what it looks like:
;
Properties Overview
Property | Required | Description | Default |
---|---|---|---|
d | Yes | path d attribute | none |
svg | No | svg container css selector | first svg element in DOM |
speed | No | speed of animation | see default marker options |
head | No | head svg element and attributes | see default marker options |
tail | No | tail svg attributes | see default marker options |
onEnd | No | on end callback | noop |
onStart | No | on start callback | noop |
Default marker options
speed: 3 head: elem: 'circle' // any svg element fill: 'black' r: 2 tail: // path by default, not customizable fill: 'none' stroke: 'black' 'stroke-dasharray': 3