0.1.14 • Published 5 years ago

doodle-svg v0.1.14

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

doodleSVG

Downloads Version License

doodleSVG is a javascript tool, its purpose is to create objects that handle normalized path (for path, line, circle, rect, ellipse and polygon) from 0 to 1, to easely handle drawing SVG line animation for anytype of SVG object. It can be use with any tween engine.

Inspired by

Examples

  1. Animate with TweenMax

Usage

git clone https://github.com/trinketmage/doodleSVG.git doodleSVG

How to

You can play with origin and end of each return iteration to do your desire doodle.

  • Animate one element
var doodle = new doodleSVG();

var el = document.querySelector("path");
var myDoodle = doodle.normalize(el);

// Default value for end is 0.
TweenMax.to(myDoodle, 5, {end: 1});
  • Animate a list of elements
var doodle = new doodleSVG();

var list = document.querySelectorAll("rect");
var myDoodles = doodle.normalizeGroup(list);

// Default value for end is 0.
TweenMax.to(myDoodles, 5, {end: 1});
0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

7 years ago