Giter Club home page Giter Club logo

mechanical-counter's Introduction

mechanical-counter's People

Contributors

bitttttten avatar commandzeta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mechanical-counter's Issues

Occasionally Odd Rendering Issue

First things first, what a cool library! I have been trying to achieve something so clean and readable that is built on top of existing animation libraries for years. I add this to fun projects and noticed that it sometimes has a rendering bug.

Example A:
Screenshot 2023-05-02 at 9 54 00 AM

Example B:
Screenshot 2023-05-02 at 9 54 09 AM

Example C:
Screenshot 2023-05-02 at 9 54 37 AM

I reduced my usage to the most basic form I could:

<div style={{
   fontFamily: `-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, ...`,
}}> <MechanicalCounter text={animatedValue} /> </div>

It appears that this is primarily caused by the nested span element.

Screenshot 2023-05-02 at 9 55 30 AM

You'll notice that the scale value, at rest, is not equal to 1 - though I didn't see any obvious reference to scale in your codebase, I think the culprit must be that the animation is stopping too soon for some reason which leaves the final animation state with some transition values instead of the final values.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.