Mobile Friendly Website


Doing it with style

CSS DEMOSCSS3 Keyframe Gallery

Date : 18th June 2011

For all modern browsers

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


I was recently asked if I would like to submit a few demos for the Mozilla Developer Network current challenge for CSS3 animation as Mozilla Firefox v5 will be supporting keyframe animation. This prompted me to produce a cople of demos that can be seen here - Zoom to infinity and here - Auto-run photo album. These demos can be seen in Safari, Chrome and now Firefox 5 and are available as downloads under GPL.
Your vote for these demos would be appreciated.

I have also been investigating the possiblilty of using keyframes to animate a photo gallery, and the results can be seen above. This uses the little known style 'animation-fill-mode: forwards;' which stops the keyframe animation at 100% without a reset to the 0% state.

So click the thumbnails to see 10 different ways to animate the large image. By using keyframes there are endless animation possibilities. All we need to do now is wait for Opera and IE to support these styles.

Firefox 5 will see a 'bounce' on the first four animations, but Safari and Chrome cannot quite get this right when used with 'animation-fill-mode', so I have this as a simple slide for these two browsers.

9th January 2013 - Now working correctly in all the latest browsers.

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