Firstly

WTFis this?

  1. A simple, lightweight 2.5D projection engine consisting of just 2 components: a scene & nodes.
  2. A node can be added as a child to a scene, or to another node.
  3. A scene can be rotated and pitched.
  4. A node can be translated, rotated and scaled in x, y & z.
  5. Nested nodes inherit their parent's transformations.
  6. Nodes are projected from their 3D scene coordinate to a 2D screen coordinate.
  7. Nodes can also be sorted by z-depth, so you can easily set a DOM element’s z-index from a calculated property.
  8. It's 7KB and pretty fast, what more do you want?
OK
Fork me on GitHub