added a callback, semicolons

Basically i've added a callback function. This function could be useful for animating svgs after a page scroll or other stuff. I've added semicolons, a small description of the formal parameters and set the indentation equal on the whole script. 

Your script saved my day :smiley: