The http://www.programmableweb.com/ is s vast collection of APIs for web developers. It is a fine place to start if you need some API service for your website or app.
So in hit detection you have to calculate the x-position, the image width and height. In layout you should be able to figure out where to plage the images, and illustrations.
- Y = “up / down”
- X = “left / right”
( I tend to forget this … )
- On the HTML canvas the top left corner is x = 0 and y = 0.
- The y-axis is “up & down”.
- The x-axis is “left & right”.
With a canvas you can animate your page. You can use images or draw geometric figures on the canvas. Here are some tutorials for canvas animation.
- Basic Canvas drawing.
- Canvas animation – see the video below.
Parallax Effect ( Multilayer animation )