Quickstart
In this guide, we'll create a simple animation using Canvas Commons.
Animation flow
Canvas Commons uses generator functions to describe animations.
Scene hierarchy
Scenes are collections of nodes displayed in your animation. They're organized
Positioning
Canvas Commons uses a Cartesian coordinate system. Its origin is located in the
Layouts
Layouts allow you to arrange your nodes using Flexbox. Any node
Signals
Signals represent a value that may change over time. They can be used to define
Effects
Effects let you observe changes to signals and react to them. Unlike signals,
References
Usually, when creating a node, we want to store a reference to it, so we can
Tweening
Tweens are one of the fundamental building blocks of animation. They are a
Time Events
One of the pain points of creating explanatory animations using code is
Transitions
Transitions allow you to customize the way scenes transition from one into
Camera
Canvas Commons ships with a simple orthographic camera that allows you to pan,
Logging
One method of debugging your code or animation flow is using logging messages.
Media
In this chapter we will take a look at all the different types of media Motion
Rendering
2 items
Presentation
Aside from exporting your animations, you can use Canvas Commons to present them
Configuration
Canvas Commons is configured in the Vite's configuration file: