simplified the `duration` option handling
simplified the `duration` option handling

Prinzhorn/skrollr-menu,kevinrodbe/skrollr-menu,Prinzhorn/skrollr-menu,uritzo/skrollr-menu,uritzo/skrollr-menu,kevinrodbe/skrollr-menu