resolve js transition effect during compilation rather than at transition