updated animation snippet