Fix animation callback with delay

In animations with delay the callback triggers before animation ends.
Need to add delay to duration in setTimeout