JSFiddle - React, Tailwind, and code Playground
HTML
<div class="avd-banner">
<div style="position:relative">
<div class="small-image">
<img src="http://1.bp.blogspot.com/-Ky2HJ_6gpIU/Un43riA6DiI/AAAAAAAACyY/QF13dq1riDs/s1600/MOVE-CURSOR-HERE.gif" />
</div>
<div class="avd-pl-ghar">
<a target="_blank" href="#">
<img src="http://4.bp.blogspot.com/-tTdP5HhVujM/Un43cYrSogI/AAAAAAAACyQ/IV13u0TWvFw/s1600/125x125.jpg" width="125px" height="125px" border="0"/>
<strong>Our Ad Policy</strong>
</a>
<a target="_blank" href="#">
<img src="http://4.bp.blogspot.com/-tTdP5HhVujM/Un43cYrSogI/AAAAAAAACyQ/IV13u0TWvFw/s1600/125x125.jpg" width="125px" height="125px" border="0"/>
<strong>3 $ only per month</strong>
</a>
<a target="_blank" href="#">
<img src="http://4.bp.blogspot.com/-tTdP5HhVujM/Un43cYrSogI/AAAAAAAACyQ/IV13u0TWvFw/s1600/125x125.jpg" width="125px" height="125px" border="0"/>
<strong>Purchase this adspace</strong>
</a>
<a target="_blank" href="#">
<img src="http://4.bp.blogspot.com/-tTdP5HhVujM/Un43cYrSogI/AAAAAAAACyQ/IV13u0TWvFw/s1600/125x125.jpg" width="125px" height="125px" border="0"/>
<strong>Advertise With Us</strong>
</a>
</div>
</div></div>
CSS
.avd-banner {
background: none repeat scroll 0 0 #FFFFFF;
border: 1px solid #CCCCCC;
box-shadow: 0 14px 2px -10px #CCCCCC;
margin-bottom: 30px;
padding: 8px;
position: relative;
width: 652px;
z-index: 15;
}
.small-image {
cursor: pointer;
height: 167px;
overflow: hidden;
position: relative;
}
.small-image > img {
-moz-transition: all 500ms;
-webkit-transition: all 500ms;
-o-transition: all 500ms;
transition: all 500ms;
position: absolute;
z-index: 50;
opacity: 1;
left: 0;
}
.avd-banner:hover .small-image > img {
opacity: 0;
margin-top: -167px;
}
.avd-pl-ghar {
position: absolute;
top: 0;
z-index: 10;
}
.avd-pl-ghar a {
border-radius: 4px 4px 4px 4px;
box-shadow: 0 0 2px 0 #333333 inset;
display: block;
float: left;
margin: 13px;
padding: 6px;
position: relative;
text-decoration: none;
width: 125px;
height: 125px;
-moz-transition: all 300ms ease-in-out;
-webkit-transition: all 300ms ease-in-out;
-o-transition: all 300ms ease-in-out;
transition: all 300ms ease-in-out;
}
.avd-pl-ghar a:hover {
background: #07aaee;
}
.avd-banner .avd-pl-ghar a strong {
background-color: rgba(0, 0, 0, 0.7);
border-radius: 2px 2px 2px 2px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
color: #FFFFFF;
font-weight: normal;
right: -20px;
padding: 3px 6px;
position: absolute;
text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.75);
top: 0;
z-index: 9999;
}
.avd-banner .avd-pl-ghar a strong {
opacity:0;
-webkit-transition-property: opacity, top;
-webkit-transition-duration: 500ms;
-moz-transition-property: opacity, top;
-moz-transition-duration: 500ms;
-o-transition-property: opacity, top;
-o-transition-duration: 500ms;
transition-property: opacity, top;
transition-duration: 500ms;
}
.avd-pl-ghar a:hover strong {
opacity:1;
top: 120px;
}