Added ability to set transition time to avoid CSS complications