Skip to content
A little experiment to see how easy it was to make a canvas and a child object relative.
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README
app.js
index.html

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.