Update 3
It looks like what you are trying to ask is How to Mimic Windows 8 flip tiles using html, css, and javascript. I would recommend abstracting your question to focus on just those details instead of providing extra code. It has already been asked on Stack Overflow here.
Here are some additional resources:
Try to implement these and ask a more focused question if you get stuck.
Here's a working sample the relevant code from your question
HTML
<!-- language: lang-html -->
<div class="demo-wrapper">
<div class="dashboard clearfix">
<div class="col1 clearfix flip-container vertical">
<div class="big todos-thumb flipper" >
<div class="front" >
<p>My Todos</p>
</div>
<div class="back" >
<p>You have 5 more tasks to do!</p>
</div>
</div>
</div>
</div>
CSS
<!-- language: lang-css -->
/*rotate entire block on hover over middle */
.vertical.flip-container:hover .flipper {
-webkit-transform-origin: 50% 50%;
-webkit-transform: rotateX(-180deg);
}
/*re-rotate inner background text back to normal*/
.vertical.flip-container:hover .back {
-webkit-transform: rotate(180deg);
-webkit-transform: rotateX(180deg);
}
/*normally hide back*/
.vertical.flip-container .back {
display:none;
}
/*hide front on flip */
.vertical.flip-container:hover .front {
display:none;
}
/*show back on flip*/
.vertical.flip-container:hover .back {
display:block;
}