got the code animations working here correctly
code samples are in
removed console logging
refactoring code