Mobile Friendly Website

CSSPLAY

Doing it with style

CSS DEMOSCSS Stacked Slideshow

Date : 20th March 2011

For all modern browsers


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





Information

Absolutely NO javascript.

Just to see if this was possible using only CSS. A simple slideshow that is animated in Safari, Chrome, Opera and Firefox v4 beta. Just click the top image to see the next image in the stack.

When you get to the last image the slideshow starts again with the first image.

Internet Explorer IE7, IE8 and IE9 use a single line htc file to overcome the bug where it does not refresh the element when using :active with the general sibling selector. This is covered by two lines in the stylesheet.

Safari and Chrome are now able to keep the :focus styling even when the mouse button is released. This is done using just CSS.

11ht November 2011

The htc file has been removed and a single javascript line added to the body tag is used instead to force IE7 and IE8 to refresh the page when using :active with adjacent and general sibling selectors.

The code and the stylesheet has been updated to use my latest techniques to give a much smoother transition between images and to improve the wraparound when moving from the last image to the first. Safari gives the best results.


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}cssplay.co.uk 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.

Support CSSPLAY

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.


For more CSS demonstrations
I recommend that you visit the Dynamic Drive CSS Library.


Free, practical CSS menus, layouts, and examples


CUSTOM SEARCH

Facebook Twitter rss feed Facebook Fan Page