';
},animate = function(){
var bubbles = $(document).find('.bubble'),reversed = bubbles.get().reverse(),speed = settings.speed;
$(reversed[0]).stop().animate({ opacity: 1},speed,function() {
$(reversed[1]).animate({ opacity: 1},function() {
$(reversed[2]).animate({ opacity: 1},function() {
$(reversed[3]).animate({ opacity: 1},speed);
});
});
});
},unanimate = function() {
var bubbles = $(document).find('.bubble');
bubbles.stop().animate({opacity: 0});
},shiftDiv = function( container ) {
var bubbleHolder = $(document).find('.bubble-holder'),prev
IoUsPosition = container.offset().left;
bubbleHolder.css('left',prev
IoUsPosition);
};
return this.each( function() {
var $this = $(this),container = getBubbleDiv( $this );
$this.on('mouseenter',animate );
$this.on('mou
SEOut',unanimate );
$(window).on('resize',shiftDiv.bind(this,$this) );
return $this.parent().prepend(container);
});
};
})(jQuery);