refactored animation function with dependency injection
updated with animate()
added images to divs
Merge pull request #2 from salarkhan/animate

Animate