CSS Stacked Slideshow

20th March 2011

Updated 13th February 2013

For IE7, IE8, IE9, IE10, IE10 touch screen, Firefox, Safari, Chrome and Opera







copyright © stu nicholls - CSS play

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.


Copyright

You may use this method on your personal 'non-profit' web site without seeking my permission. A link back to CSSplay is always appreciated.

Commercial usage is also permitted without seeking approval, but I would ask that a donation is considered to support my work on CSSPlay.

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.



Please Support CSS play

Please note that if your donation is for a demo/menu then you will need to email me with the url of the demo/menu after making the donation

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


Free, practical CSS menus, layouts, and examples

Soft Geometry Creative Industries

Soft Geometry Creative Industries
is a music-based design company located in Bristol UK.
I create artwork for albums, singles, posters and t-shirts.
My work is influenced by punk and post-punk poster and flyer design,
lo-fi photocopy aesthetics,
Francis Bacon and Mark Rothko.

I can provide a start to finish service with my own art and photography, put together work from images provided by yourself, and collaborate on an idea.
softgeometrycreative{at}gmail.com

Follow CSS play


Facebook   Twitter   Facebook Fan Page