A Complete Guide to Web Design

(やまだぃちぅ) #1
Creating Animated GIFs 327

Animated GIFs

Creating Animated GIFs

Web Design in a Nutshell, eMatter Edition

Other Options


The following are descriptions of other aspects of animated GIF files that can be
set within most animation programs.


Loop
You can specify the number of times an animation repeats—none, forever, or
a specific number. As noted earlier, not all browsers will support a specific
number of loops (it will either loop or not). One workaround to this problem


Figure 18-1: Disposal method comparison


frame 1

Unspecified


frame 2

replaces entire
non-transparent frame
with another

frame 2 - result

Disposal Methods


frame 1

Do Not Dispose


frame 2

pixels not replaced by next
frame continue to display

frame 2 - result
light gray is not transparent

frame 1

Restore to Background


frame 2

background color or tile
shows through
transparent pixels

frame 2 - result
background tile light gray is transparent

frame 1 frame 2 - result frame 3

Restore to Previous (supported by Microsoft Internet Explorer 3.0 or greater)


frame 2 frame 3 - result

restore previous
Free download pdf