figuring out approach for animation within React's parameters of only using state