Adding configuration to control duration and scroll to top functionality