Advanced Search Usage Terms Submit Contact
Dynamic Drive CSS Library
 
CSS Library
Submit an original CSS code
CSS Layouts
Web Graphics
Online Tools:

Advertise Here

CSS Library: Horizontal CSS Menus: Links & Buttons: CSS3 demos: Here

Flipboard CSS buttons

Author: Dynamic Drive

Flipboard creates a series of CSS buttons that flip horizontally on themselves when the mouse rolls over them, creating an elegant, eye catching effect. It employs CSS3 transform and transitions to do the heavy work. The menu works in IE10+, and all modern versions of FF, Chrome, Safari, and Opera. It degrades perfectly with older browsers, down to IE7.

On a technical note, each button consists of 3 levels deep of markup, specifically: LI -> A -> SPAN. This is necessary to create the desired effect. When the mouse rolls over the outer LI parent, we rotate both the inner A and SPAN elements 180 degrees using CSS3 transform's rotateY(180deg) value. The key here is to declare this value on both of the inner elements, so while the child A element causes any content inside to appear as a mirror of itself when rotated, the grand child SPAN element restores the content back to its proper orientation.

Demo:


The CSS:

The HTML:

Note: Social icons used can be downloaded here.

Code Info

Rate this code:

Date Posted: 04/15/2013

Revision History: None

Usage Terms: Click here

Your Comments (0)

Got a question or need help customizing this CSS code? Post it in the CSS Forums. If you have a comment or suggestion instead, post it in the comments section below.


Commenting is not available in this weblog entry.
Copyright 2006-2014 Dynamic Drive Read our Usage Terms before using any of the CSS codes.