I'm trying to make a roster of member photos. When a user hovers over an image, information slides out from the image or fades into view with a description and links. The roster will change frequently and the members' order may need to be adjusted by a script that calculates their score.
The part of the puzzle I'm working on now is the reveal. With help, I can now make the contents appear, but the the CSS transition is weird and awkward. What is the recommended approach to constructing such an info pane? Using z-index, perphas?
CSS
*{
-webkit-transition: all 2s ease-in-out;
-moz-transition: all 2s ease-in-out;
-o-transition: all 2s ease-in-out;
transition: all 2s ease-in-out;
}
.dude>:first-child{
width:0px;
height:0px;
float:left;
visibility:hidden;
}
.dude:hover > :first-child {
width: auto;
height: auto;
visibility:visible;
float:none;
}
HTML
<table>
<thead><h4>Roster</h4></thead>
<tbody>
<tr>
<td><div class="dude"><div>THIS INFORMATION WILL APPEAR LIKE MAGIC</div><img alt="Scott" src="madeupphotoname.jpg" /><b>Scott</b></td>
<td><div class="dude"><div>THIS INFORMATION WILL APPEAR LIKE MAGIC</div><img alt="Sally" src="madeupphotoname2.jpg" /><b>Sally</b></td>
</tr>
</tbody>
</table>
Your patience and talent is appreciated. For any so interested, here is the jsfiddle of my project.