HTML and CSS Reference
In-Depth Information
In Figure 5-2 , you can see what the ball looks like when moving on a line from one point to
another and also what the points path looks like when it is drawn.
NOTE
This is the only time in this chapter where we will discuss the points path in depth. If you see the
points being drawn, you will know how and why we have added that functionality. You should also
have enough information to remove the code when necessary.
Figure 5-2. A ball moving from one point to another along the line, with the points drawn for illus-
tration
Example 5-2 is the full code listing for CH5EX2.html .
Example 5-2. Moving on a simple line
<!doctype html>
<html
<html lang= "en" >
<head>
<head>
<meta
<meta charset= "UTF-8" >
<title>
<title> CH5EX2: Moving On A Simple Line </title>
</title>
< script src = "modernizr.js" >< /script>
< script type = "text/javascript" >
Search WWH ::




Custom Search