Finished animation code for collection views.