Skip to content

garygarside/Responsive-HTML5-Canvas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

A little experiment to see how easy it was to make a canvas and a child object relative.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published