Mobile Friendly Website


Doing it with style

CSS DEMOSCSS3 Animation - Just for fun

Date : 1st February 2010

For all modern browsers

This demo is too wide for your mobile screen.
Please view on a tablet or PC.

Click to view animation - Firefox and Opera - and now (10th March 2011) Safari and Chrome

Hover to view animation - Safari, Google Chrome, IE8, Firefox and Opera


After looking at another 'Test you skills' quiz on Sitepoint CSS - Test Your CSS Skills Number 32 and some work by 'drjochum' and 'YuriKolovsky', I have come up with this demonstration which makes use of of the CSS3 selector '+' (next sibling) to make 'next' elements move to the top of the pile when either hovering or clicking the 'previous' element.

The first demonstration reqires you to keep clicking the image to see the next frame, and it wraps around to the start when you reach the last frame.

This works in Opera, Firefox and is buggy in IE8. Now working in Safari and Chrome.

The second demonstration just needs you to keep the mouse moving over the image in MOST browsers. But the BIG drawback to this method is that the speed of movement of the mouse governs the speed of animation. This works in Firefox, Opera, Safari and Google Chrome.

It works perfectly in IE8 by just placing the mouse over the image and DO NOT MOVE IT. IE8 appears to continually monitor the mouse hover.

ALSO, because Safari, Chrome and Opera have transition control, the speed of change of the images on hover can be slowed down. So these two browsers have been slowed down to a frame every 0.1 seconds irrespective of the speed of the mouse so you will see a nice smooth animation in these two browsers.

Remember this is only for fun.

Because of all the time and effort spent in producing this demonstration I would ask that you respect my copyright.

  1. If you are using this on a personal web site then please retain the copyright comment in the stylesheet.
    A support donation is now required for this demonstration.
  2. If you are using this on a commercial web site, or as a paying job for a client, then please email me asking for permission - stu{at} and again a support donation is required.
  3. If you are having problems integrating any of my demonstrations into your website then I now offer a service to fault find and correct any errors that you may have introduced. Please email me for more information.


Your donations keep CSS PLAY running.
If your donation is for the use of a demo then please email me with the demo url after making your donation.


Facebook Twitter rss feed Facebook Fan Page