What is the current state of the art in HTML canvas JavaScript libraries and frameworks?

Toby Hede picture Toby Hede · Aug 13, 2010 · Viewed 27.1k times · Source

I am currently investigating options for working with the canvas in a new HTML 5 application, and was wondering what is the current state of the art in HTML canvas JavaScript libraries and frameworks?

In particular, are there frameworks that support the kind of things needed for game development - complex animation, managing scene graphs, handling events and user interactions?

Also willing to consider both commercial and open source products.

Answer

kangax picture kangax · Aug 13, 2010

Fabric.js screenshot

I've been working on fabric.js — a canvas library to help with exactly that — manipulating objects on canvas, by handling events and user interactions. It's not released yet, but take a look at a simple preview demo.

You can also see it in action in this design editor, which it was originally created for.

Edit: The project is now available on github (open-sourced under MIT License)

To get started, check out:

How does Fabric compare to other Javascript canvas libraries? Here's a comparison table.