Hour 15. Graphics and Animation
What You’ll Learn in This Hour
• How to preload images
• Using the
• Animating opacity
• Scripting DOM positioning
• Optimizing performance
Various examples earlier in the book have carried out changes to images on the page by changing the value of the image’s
src is given a new value, if the browser doesn’t already have the newly requested image file in its cache it attempts to download it.
In many instances this works fine, especially for small images on ...