Add transition animation for cycling photos