I have a image inside a div which is 100*100 , i want to move the image inside the div like various company’s does. for example http://www.zazzle.com does that.
I tried the below code ,but it is pushing all other divs down ,the divs are getting expanded.
any idea how to do this.
$item.animate({height: '+=5', width: '+=5'}, 'fast', function() {
$item.animate({height: '-=10', width: '-=10'}, 'fast', function() {
$item.animate({height: '+=5', width: '+=5'}, 'fast', function() {
//animation finished
});
});
});
Like http://www.zazzle.com
Second way it’s use single-image (but we lose in quality of picture)