First rAF implementation approach.

I think that if we use requestAnimationFrame instead of CSS key animation frame we can achieve the same with less code and without inserting nodes on the head tag.

Also, the pollyfill for old browsers is very simple and short and there's no need to create a different functions.

Either way, I didn't have the time to test it, so you should really check if everything is working good.