renamed 'speed' to 'duration' as it matches jQuery and makes sense