Replace rather than add div classes for transition effects