JSFiddle - React, Tailwind, and code Playground
HTML
<div id="div1">
<div id="div2">Content</div>
<div id="div4">Content.</div>
<div id="div3">Content</div>
</div>
CSS
#div1 {
width: 620px;
height: 90px;
background: rgba(0, 0, 0, 0.6);
-moz-border-radius: 8px;
border-radius: 8px;
margin: 100px auto 0 auto;
}
#div2 {
width: 300px;
height: 60px;
background: url('download.png') 0 0 no-repeat;
text-indent: -9999px;
margin: 15px 0 0 15px;
float: left;
}
#div4 {
color: #ddd;
text-align: center;
width: 160px;
float: left;
margin: 26px 0 0 30px;
line-height: 20px;
}
#div3 {
width: 44px;
height: 44px;
background: url('strelica.png');
float: right;
text-indent: -9999px;
margin-top: 24px;
margin-right: 40px;
}
JavaScript
$(function() {
$('#div1').hover(
function () {
$('#div2').stop().animate({ 'background-position-x' : '0px', 'background-position-y': '-60px' }, 500);
$('#div3').stop().animate({ 'margin-right' : '-=10px' }, 500);
},
function () {
$('#div2').stop().animate({ 'background-position-x' : '0px', 'background-position-y': '0px'}, 500);
$('#div3').stop().animate({ 'margin-right' : '+=10px'}, 500);
});
});