implementing animation for homescreen