Waiting until effect is finished with easing plugin

Waiting until effect is finished with easing plugin

Hi there, just want to set a css property when the easing is done:

$('#container').animate({height:576}, {duration: 1000, easing: 'easeOutBounce'});


When this is finished I want to change the background:

$('#container').css('background-image', 'url(images/thepic.jpg)');


Been trying some possibilities but syntax crashes...