Animation to use frame times

It was just using an incremeting counter, which is obviously quite wrong
Smooth animations