Animation using CSS

May 6, 2004 by  
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:

Electronics For DummiesElectronics For DummiesElectronics is fascinating – want to make something of it? This book shows you how!

You can make all sorts of things, once you understand what ele... Read More >

How to Diagnose and Fix Everything ElectronicHow 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 >

Kindle Fire, Full Color 7" Multi-touch Display, Wi-FiKindle Fire, Full Color 7" Multi-touch Display, Wi-FiMovies, apps, games, music, reading and more, plus Amazon's revolutionary cloud-accelerated web browser - 18 million movies, TV shows, songs, magazine... Read More >
Related Posts Plugin for WordPress, Blogger...

Popularity: 21% [?]

  • http://www.paulkahl.com Paul

    Slick! Very nice use of the CSS.

  • http://www.paulkahl.com Paul

    Slick! Very nice use of the CSS.

Stop SOPA!

SOPA breaks our internet freedom!
Any site can be shut down whether or not we've done anything wrong.

Stop SOPA!