Only add transitions-related classes when transitions are enabled and active