Released on July 9 , 2010 , in the United States , " Despicable Me " opened at the number one spot at the box office and pulled in $ 56.3 million , making it the third biggest opening grossing for an animated film in 2010 behind " Toy Story 3 " and " Shrek Forever After " .