initialze repo with index, anim loop