Added functionsPre functionality
Added functionsPost functionality
Fires functions pre and post at correct time and not instantly
Updated demo with fixes, now cross browser animation