Friday 8 June 2012

Tutorial Image Accordion with CSS3


In this tutorial we will create an image accordion that will expand an item on click. Using the sibling combinators and a nested structure we can control the opening of the items/slides with radio buttons.

Today we are going to create a CSS-only image accordion. We’ll use a nested structure and apply a technique of radio buttons and the sibling combinator in order to control the slides. The idea is to make each item, or slide, “clickable” by overlaying the radio button over the entire slide, and change the position of a child element when clicking on it.
info: http://www.habitatdesign.org/2012/06/tutorial-image-accordion-with-css3.html

No comments:

Post a Comment