Your first consideration should always be the design of the animation, what purpose it will serve, and how it will aid in the communication of your message.
Your next consideration is to resolve browser compatibility issues. This is no big deal. Just copy my scripts and paste them into your pages as needed!
You'll also need to cache (pre load) your images so they're available when you need them. Again, this is no big deal.
This tutorial covers all these issues in detail. There are also examples that you can download, modify, and use in your own web pages.
Originally, it took server-side scripts and open network sockets to create web animation. Today, web animation is much easier to create. And web developers have many options for animating images on the web.
- The developer has complete control over when and how images are sequenced (unlike animated GIFs or GIF89a files,
- The viewer may control when and how the animation occurs (interactivity).
Any movement (regardless of quality) on an otherwise static web page will attract the viewer's attention. That being the case, make sure that your animation is more worthy of attention than those things that are not moving.
The worst reason to use animation is because "it's cool", or you're looking for some way to "jazz-up", "activate", or "ignite" your web pages.
Don't yield to hype! Make sure your use of animation communicates more about your content than it says about you the developer.