fix(animate): move forEach so it can be accessed as needed