I have an 800x500 image where the bottom two quadrants feature edits to the graphics that I want to fade in gradually.
If we divide the whole image into AB CD
Sections C & D are what will be covered up after 10 seconds with two images fitting in the bottom quadrants. Initially, I used display:none; assuming that the fadein() function would manage the transition, but it seems like I made a mistake somewhere.
You can view the fiddle here. The particular images may differ, but the sizes remain accurate.
style.css
*{
margin:0;
padding:0;
background-color: #000;
}
#container {
position: absolute;
bottom: 0px;
top: 0px;
display:inline;
}
.bottom-left {
position:absolute;
top:250px;
left: 0px;
display: none;
}
.bottom-right {
position:absolute;
top:250px;
left:400px;
display: inline;
}
The page:
<!DOCTYPE html>
<html>
<head>
<!-- STYLE SHEETS -->
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen"/>
<!-- JQuery * QTip Plugin at the bottom -->
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#bottom-left').fadeIn(10000);
});
</script>
</head>
<body>
<div id="container">
<image src="images/NoAlertFull.png">
<span class="bottom-right">
<image src="images/Alert-red.png">
</span>
<span class="bottom-left">
<image src="images/Alert-yellow.png">
</span>
</div>
</body>
</html>