background preloader

Web Development

Facebook Twitter

All The Cheat Sheets That A Web Developer Needs. CSS3 Accordions | CSS3 transitions, transforms and animations. Plan Mark up a few sections with a title and content Set the height to all but the first to 0, and overflow to hidden on all of them Bind click events using JS on the titles to change the heights Demo Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Not sure if the use/abuse of Unicode is really a good idea, but you can see that it's pretty easy to get a simple accordion working. I'm using classes again here to define different states, then using jQuery to turn them on and off. The Code <div id="accordion"><section id="item1"><p class="pointer">&#9654;</p><h1><a href="#">A long paragraph</a></h1><p>Pellentesque habitant... CSS3.0 Maker | CSS3.0 Generator | CSS 3.0 Generator | css3 generator.

Periodic Table of the Elements - Josh Duck. Clue – A fun and easy way to test what people remember on your website.