Giter VIP home page Giter VIP logo

Comments (2)

mattrothenberg avatar mattrothenberg commented on May 30, 2024

I think this is a good idea, though I'm a little leery to make this a first-class feature of the library.

I like how, currently, value drives the presentation of the entire chart. I don't like how we'd have to resort to hard-coding certain values just to unlock a different state that permits CSS animations.

It's pretty trivial now to animate the chart using requestAnimationFrame and updating value according to whatever interval/easing you like.

CleanShot.2023-10-24.at.09.10.45.mp4

Any reason why CSS transitions feel like a better solution here?

from use-gauge.

raRaRa avatar raRaRa commented on May 30, 2024

Gotcha. CSS just feels more fluid, where you could introduce cubic-bezier and other cool effects without really affecting the value. I don't think the current API needs to change at all, since my method works great on top of the existing API by just adding a CSS transform to the needle.

from use-gauge.

Related Issues (11)

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.