how to run function after animation complete jquery

JavaScript
$('#header .pointerarrow').animate(
    { left: linksstart + breedte },
     400, function() {
       // Animation complete.
  });
Source

Also in JavaScript: