Not sure whether or not your using `==` (instead of `===`) on purpose. Is `1` a valid value for `translate`?