Add state system to HAR animation handling