Animates larger images into smaller containers
You need to have jquery installed and add a reference to the js file
<script type="text/javascript" src="pananimate.js"></script>
Initialize the image to animate
$('img.animated').pananimate(options);
The available options are
{
delay: 3000, //delay before animation
animationSpeed: 1500,
animationType: 'loop', //'single' and 'gotoAndStop' also available
direction: 'forward' //anything other than 'forward' is 'backward'
}