Added option for enabling or disabling reset of transition after transitionend