Added onFinish option, which calls an optional function on an element when its text effect is complete