animakit icon indicating copy to clipboard operation
animakit copied to clipboard

Counter Animation

Open ai opened this issue 9 years ago • 4 comments

It contains number and animate number changes by moving new number from up or down (like casino machines)

ai avatar Feb 25 '16 14:02 ai

What about the last demo here https://animakit.github.io/#/slider ?

askd avatar Nov 04 '16 09:11 askd

It looks same, but API is much move complicated for user.

My dream is something like:

<AnimakitCounter value={this.props.count} />

ai avatar Nov 04 '16 10:11 ai

But you need an opportunity to stylize numbers. So you need HTML-elements with them.

askd avatar Nov 04 '16 10:11 askd

Could we do like this:

<div style="color: red; font-size: 30px">
  <AnimakitCounter value={this.props.count} />
</div>

For example, we could lock a style changes during a animation. So before every animation to take component size again.

ai avatar Nov 04 '16 10:11 ai