Added the ability to pass in a function for stagger option, which will be called for each element. The function will be passed the elementIndex and the element itself