Transition time option + active class fix

Added an option to be able to be able to set a duration for the fade in
/out between tabs. Also fixed the issue of the active class not being
removed when clicking on new tab.