1. Home
  2. /
  3. Createjs
  4. /
  5. Simple CreateJS Animation

Simple CreateJS Animation - Createjs Typing CST Test

Loading…

Simple CreateJS Animation — Createjs Code

A basic CreateJS program that draws a circle and animates it moving across the canvas.

# createjs/demo/index.html
<html>
	<head>
		<script src="https://code.createjs.com/1.0.0/createjs.min.js"></script>
	</head>
	<body>
		<canvas id="demoCanvas" width="800" height="600"></canvas>
		<script>
		const stage = new createjs.Stage('demoCanvas');
		const circle = new createjs.Shape();
		circle.graphics.beginFill('red').drawCircle(0, 0, 50);
		circle.x = 50;
		circle.y = 300;
		stage.addChild(circle);

		createjs.Ticker.framerate = 60;
		createjs.Ticker.addEventListener('tick', () => {
		circle.x += 2;
		if(circle.x > 800) circle.x = 0;
		stage.update();
		});
		</script>
	</body>
</html>

Createjs Language Guide

CreateJS is a suite of modular JavaScript libraries and tools designed to facilitate rich interactive content via HTML5 Canvas, supporting animation, sound, and UI interaction.

Primary Use Cases

  • ▸HTML5 Canvas-based games and animations
  • ▸Interactive web ads and banners
  • ▸Multimedia-rich educational apps
  • ▸Vector graphics and sprite-based animations
  • ▸Integration with Adobe Animate exported content

Notable Features

  • ▸Modular suite: EaselJS, TweenJS, SoundJS, PreloadJS
  • ▸Supports timeline and tween animations
  • ▸High-performance Canvas rendering
  • ▸Event-driven interactivity for user input
  • ▸Asset preloading and management

Origin & Creator

CreateJS was developed by gskinner.com (Grant Skinner) starting around 2010, evolving from earlier Flash-to-HTML5 tooling.

Industrial Note

CreateJS is widely used for browser-based games, HTML5 banner ads, interactive infographics, and multimedia-rich web applications.

More Createjs Typing Exercises

CreateJS Bouncing BallCreateJS Rotating SquareCreateJS Moving RectanglesCreateJS Color ChangeCreateJS Draggable CircleCreateJS Rotating Multiple ShapesCreateJS Fading CircleCreateJS Scaling Circle

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher