1.5.11 • Published 1 year ago

parsegraph-animator v1.5.11

Weekly downloads
5
License
MIT
Repository
github
Last release
1 year ago

Animator

Animator manages a date-based percent value.

import Animator from 'parsegraph-animator';

const interval = 3000;
const anim = new Animator(interval);
anim.restart();
const animate = ()=>{
  console.log(anim.t());
  requestAnimationFrame(animate);
};
requestAnimationFrame(animate);
setTimeout(()=>anim.restart(), interval);

Output:

anim.t() counts from 0 to 1 over 3s, repeating every 3s.
1.5.10-dev

1 year ago

1.5.10

1 year ago

1.5.11

1 year ago

1.5.11-dev

1 year ago

1.5.9-dev

1 year ago

1.5.9

1 year ago

1.5.8

2 years ago

1.5.8-dev

2 years ago

1.5.7-dev

2 years ago

1.5.7

2 years ago

1.5.6-dev

2 years ago

1.5.6

2 years ago

1.5.5-dev

3 years ago

1.5.5

3 years ago

1.5.4

3 years ago