|
|
|||||||||||||
|
|
Image Files | Animated GIFs |
|
|
|
|||||||||
|
Animated GIFs
Files in GIF format normally display as static images. However, it is possible to construct animated GIF files. These contain a set of GIF images that most browsers (e.g., Netscape 2.0 and beyond, or Internet Explorer 3.0 and beyond), can display in sequence, thereby producing animation.
Some Examples of Animated GIFs
Animated GIF files have an advantage over Java and CGI script animations in that they do not require server or client software beyond that of the basic Web server and browser. Thus, they are the simplest means to implement animation. Of course, they can only produce animation; if one wants to go beyond this (for example, to add sound to the animation, or to allow the user to interact with the image) it is necessary to go to more sophisticated methods like CGI scripts or Java.
The two examples shown above
illustrate the use of animation to amuse and to catch
a reader's attention. But animation can serve a more direct educational purpose
too. For example, here are three examples taken from an
introductory
astronomy
class:
Example: Constructing an Animated GIF
Collecting the Images
Make a subdirectory in your main folder called "amimages". Now, beginning with
the leftmost image and proceeding to the right and down by rows, copy each of
these images into this folder by placing the mouse cursor over the image,
holding the right button down and selecting "Save Image As", and placing the file
into the directory "amimages" with the default file
name (these should be fig1.gif, fig2.gif, ... fig4.gif). As the names
indicate, these are GIF files.
Assembling the Frames
The Frame List display should have no entries in it. If, as in the above figure,
this is not true, select "New" from the "File" pulldown menu to clear it (see
figure to the left). Now, add the GIF files that will compose the animated GIF
to the frames display in the order that they should appear.
To do this, use File/Open in Animagic; in the window that appears browse
to the folder where you've placed the four files, and select them.
(You only need to click on fig1.gif and then press the shift key and
click on fig4.gif;
all four files will then be selected. Be sure not to press the shift
key until after you've clicked the first file name.)
You should now see all four file names listed, each in quotes, in
the "File name" field of this Animagic window as shown below:
Now select "Frame rate" in the "Animation" menu to set the speed at which your new animation will play. This menu selection opens a display that looks like the following:
You can play your animation by either selecting "Play" in the "Animation" menu, or by clicking on the button with the triangle in the tool bar. If you wish to speed up or slow down the animation, just use the Frame rate display again.
Rearranging Frames
Alternatively, you can clear the contents of the Frame List window by choosing "New" from the File menu and then use File/Open for only the file that will be your new first frame. Then use "File/Append frames" to load each subsequent frame, one at a time, in whatever order you desire the frames to be played.
Setting Animation Options
Note that by default an animation runs continously, looping over and over. You can have the animation stop after a certain number of iterations by using "Loop Count" in the Animation menu. (Loop is selected by default in the Options menu. If you simply toggle it off and save the animated gif, the animation will play only once in your browser.)
Testing the Animation
You may also display the animation a step at a time: halt it by pulling down "Stop" from beneath the "Animation" menu (or the black square button in the toolbar), and then step a frame at a time by selecting "Next frame" from beneath the "Animation" menu.
Saving the Animation as a Link
Open your homepage file and use the mouse to copy and
insert the following text into a convenient place in the file:
Save the file and open the Web Browser (reload if necessary). You should
now have a link labeled "Example 1" in your homepage
that displays the permanently looping
animation when you click on it. (As a check, the animated GIF that you
have just made should
look like this.)
How to Make the Original Frames
In addition, many programs that you may have already, such as Microsoft Works or Paint Shop Pro, include rudimentary drawing programs that are often adequate for simple animation frames. The main criteria are that the programs be able to output in GIF, PCX, or BMP formats (or a format that can be converted to those by another piece of software).
Note that in simple animations the successive frames are very similar to each
other. One can use that to advantage in making the frames by starting
with a master and then just making small modifications to obtain each successive
frame. For example, a simple revolving image can be constructed using
a single drawing that
is just rotated in each successive frame, and the motion of an object can be
simulated by drawing the object once, and then just changing its position in
successive frames. Another option to simulate motion
is to make the frames all copies of the same image,
and then to use the capability under the "Frames" menu to offset each
successive frame from the previous one by a specified amount to simulate motion.
However, in this case one may have problems with the redrawing of the
background.
Making Your Own Animation
Start thinking about the animation you would REALLY like to put on your homepage, and read the documentation included with Animagic (or check the program's online documentation) to see all the additional cool features that we didn't even discuss in this Tutorial (for example, how to create all sorts of special effects such as fades and dissolves in an animation).
However, before leaving this subject,
let's temper the enthusiasm slightly with the
observation that gee-whiz gimcracks
like animation are most effective when used
sparingly if their primary purpose is to attract the reader's attention.
Don't overdo it, or your readers will be distracted from the
content by the flashing lights, or (worse) become so annoyed that they leave
and don't come back. Use some taste, and remember that there is nothing
whatsoever wrong with making your page attractive and interesting, as long
as the
bottom line is CONTENT.
Animated GIF Archives on the Web
|
|||||||||||||
|
|
|||||||||||||