Although this code is larger than using just "lt" and "gt" methods, it is much faster in dev mode since we dont have to compute animations for all nodes