Animation using CSS
May 6, 2004 by daynah
Filed under Code Snippets, Links and Resources
I was reading this article called “CSS Sprites: Image Slicing’s Kiss of Death” which shows how we can animate images, using only CSS and no javascript. I decided to try it out for myself, and played with the code for a bit. I came up with this this example using an image. The amazing thing part is that only one image was used. The coding for this trick is very condensed and much shorter than a javascript. One advantage this has over using javascript is that it is much faster. There’s no delay with multiple image swapping. Instead, css displays a different part of one image.
Read more about this CSS trick and see if you can give your webpage a little more life. :)
Related Products:
Getting Started in ElectronicsThis is a complete electronics course in 128 pages! Author Forrest Mims teaches you the basics, takes you on a tour of analog and digital components, ... Read More >
Electronics Fundamentals: Circuits, Devices & Applications (8th Edition)This renowned book offers a comprehensive yet practical exploration of basic electrical and electronic concepts, hands-on appli... Read More >
How to Diagnose and Fix Everything ElectronicMaster the Art of Electronics Repair In this hands-on guide, a lifelong electronics repair guru shares his tested techniques and invaluable ... Read More >
Popularity: 21% [?]


@







