Thursday, December 9, 2010

Interactive Backgrounds with HTML 5

HTML 5 seems that it is taking away a lot of the stuff that previously relied on javascript and other scripting languages. This HTML 5 example shows that HTML 5 can find the position of the cursor on the page. Before if you wanted to find where the cursor is on the page you would have had to use javascript or have made a Flash website. This website changes the color of the background dependent on where you have your mouse inside the web page. This uses a canvas to change the background color. The canvas is a new feature in HTML 5. You can create a radial gradient as easy as createRadialGradient(0,0,0,0,0,600);

1 comment:

  1. Greatness. Really useful. Thanks for the share. I bookmarked it for continuous visit.
    html5 audio player| html5 audio player