Trying to parse the translate() value is tricky. Instead going to track the change of the value.
Explanation for using appendToParent.
Reducing code duplication and scope variables.