Changed class-based transitions to style-based for control