A modular animation cartridge by Goldlabel built with React, GSAP, and TypeScript.
git clone https://github.com/javascript-pro/flash.git
cd flash
npm install
npm start
A standalone, open-source playground for creating movies — small animations written in TypeScript (we call them actionscript files). Each movie can target one or many movieclips (reusable React components) and bring them to life using GSAP.
Think of it as a lightweight, modern take on the Flash timeline:
- 🎥 Movies — standalone
.as
files with step-by-step animation logic. - 🎭 Movieclips — reusable visual React components (characters, logos, debug tools).
- 🖼️ Stage — the render surface where everything plays.
- 🎚️ Toolbar — media-style controls (play, pause, loop).
- 🪄 Trace — a debugging movieclip that pops live info (stage size, framerate, store flags).
- 📦 Cartridge — fully modular, drop into any Goldlabel project.
- Physics-based behaviours like
floorDropBounce
andceilingDropBounce
. - Infinite scrolling (
scrollLeftRight
) with wrapping. - Configurable movies with props (
speed
,color
,loop
). - Redux-backed store for flags, playback state, and debug data.
- Plug-and-play movieclips and quick demo examples.
"themes": {
"dark": {
"mode": "dark",
"primary": "#2f69a8",
"secondary": "#3a393b",
"border": "#000",
"background": "#001321",
"paper": "#052841",
"text": "#FFFFFF"
},
"light": {
"mode": "light",
"primary": "#3069a9",
"secondary": "#C4DBE0",
"border": "#ccc",
"background": "#FFF",
"paper": "#FAFDFD",
"text": "#000"
}
}
#60A5FA
#93C5FD
#001321
#000000