Giter Site home page Giter Site logo

kgraph's People

Contributors

gorioli avatar

Stargazers

 avatar

Watchers

 avatar  avatar

kgraph's Issues

Using React for animation.

You were talking about using React for animation. Where's the code you were trying to do that with? Maybe I can provide some tips.

I recommend against using React for animation, and instead use React only to render the nested structure of your interface. Your interfaces could be a DOM tree, a Three.js scene graph, etc. Use React only for indicating animation states, and use a external method for animating. For example, you could use Velocity.js, Famous 0.3 (don't use the new Famous, it's really buggy), Animate.css, Tween.js coupled with requestAnimationFrame for performance, or soon our own library (which will use web worker threads to parallel compute matrix transformations and physics).

The reason why you would not want to use React for animation is because in every frame of the animation you'll be running React's diff algorithm and other internal things, which will cost lots of performance.

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.