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