2.0.2 • Published 4 years ago

studios-doodle v2.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

Usage

Here's what it looks like:

studiousDoodle({
    d: 'M0,200 L280 0 320 60 0 600',
    head: {
        elem: 'circle',
        fill: 'white',
        r: 5
    },
    tail: {
        fill: 'none',
        stroke: 'white',
        'stroke-width': 1,
        'stroke-dasharray': 4
    }
});

Try on Codepen

Example

Properties Overview

PropertyRequiredDescriptionDefault
dYespath d attributenone
svgNosvg container css selectorfirst svg element in DOM
speedNospeed of animationsee default marker options
headNohead svg element and attributessee default marker options
tailNotail svg attributessee default marker options
onEndNoon end callbacknoop
onStartNoon start callbacknoop
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
        }
    }       
2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.4

4 years ago

1.1.333

4 years ago

1.1.2

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago