Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A little experiment to see how easy it was to make a canvas and a child object relative.
JavaScript
branch: master

Drafted README

latest commit 48928f40df
Gary Garside authored

README

Responsive HTML5 canvas with draggable object

A little experiment to see how easy it was to make a canvas and a child object relative. Uses a lot of JavaScript to do the math and is currently pretty restricted to some static calculations to rework the position and size of the rectangle. Try dragging the rectangle and resizing your browser.
Next up: Make an unlimited amount of elements respond and add ability to add elements on the fly.
Should work in IE9+ and recent builds of Chrome, Firefox, Safari & Opera.
Something went wrong with that request. Please try again.