January 2001
Beginner
312 pages
6h 4m
English
First things first: Let's start with the Web page that needs animating. This example animates the text so that it moves from left to right:
<html> <head> <title>A Simple Page</title> <script language="JavaScript"> <!-- Cloaking device on! // Cloaking device off --> </script> </head> <body> <div> Text ... on the go! </div> </body> </html>
The first addition to make is to add an id to the <div> tag surrounding the text to give it a meaningful name:
<html> <head> <title>A Simple Page</title> <script language="JavaScript"> <!-- Cloaking device on! // Cloaking device off --> </script> </head> <body> <div id="ani1"> Text ... on the go! </div> </body> </html>
Next, use CSS to position the text in its starting position: ...
Read now
Unlock full access