Skip to content

Instantly share code, notes, and snippets.

@sandrabosk
Created July 11, 2020 17:25
Show Gist options
  • Save sandrabosk/4757ca43951e69173e18568134932b28 to your computer and use it in GitHub Desktop.
Save sandrabosk/4757ca43951e69173e18568134932b28 to your computer and use it in GitHub Desktop.

Create an HTML document with one canvas on it. In a separate JS file, fetch the canvas and create on it three squares on the bottom of it. Make the squares move from the bottom to the top of the canvas. You can choose the speed in which they move.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment