I've got this code:
var $carousel = $('#carousel-showcase');
$carousel.carousel();
$carousel.bind('slide.bs.carousel', function (e) {
setTimeout( function(){
var left = $carousel.find('.item.active.left');
var right = $carousel.find('.item.active.right');
if(left.length > 0) {
$("#wrap").animate({
backgroundPositionX: '+=50%'
},0);
}
else if(right.length > 0) {
$("#wrap").animate({
backgroundPositionX: '-=50%'
},0);
}
}, 500);
});
to fire off an animate function on slide change in the bootstrap 3 carousel. Everything works fine in Chrome, however it doesn't work in Mozilla. Any suggestions?