Hmm, it's a bit hard to interpret that image. Do you mean something like this? (Paste code into a .html file and double click.)
Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Experiment</title>
<style type="text/css" media="all">
*{ padding:0px; margin:0px;}
.boxgrid {
width: 325px;
height: 260px;
margin:10px;
background:#161613;
border: solid 2px #8399AF;
overflow: hidden;
position: relative;
}
.boxgrid img {
position: absolute;
top: 0;
left: 0;
border: 0;
}
.boxgrid p {
text-align: center;
line-height: 260px;
color:#afafaf;
font-weight:bold;
font-family: "Lucida Grande", Arial, sans-serif;
}
.boxgrid a {
color: black;
padding: 20px;
background: white;
}
.boxcaption{
float: left;
position: absolute;
background: #000;
height: 260px;
top: 260px;
width: 100%;
opacity: .4;
/* For IE 8 */
-MS-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
}
</style>
</head>
<body>
<div class="boxgrid slideright">
<img src="http://pageaffairs.com/sp/einstein.jpg">
<div class="cover boxcaption">
<p><a href="#">Read More</a></p>
</div>
</div>
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.1.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.boxgrid.slideright').hover(function(){
$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300});
}, function() {
$(".cover", this).stop().animate({top:'260px'},{queue:false,duration:300});
});
});
</script>
</body>
</html>
Bookmarks