JS utility class for CSS transitions