Firefox flip transition fix

Thanks for investigating the flip transition bugginess in Firefox @ovalseven8. I reviewed your pull requests (#127 & #128) and I think we can fix the problem with a bit less code. This pull request implements what I have in mind. It works for me in the latest version of Firefox on OS X.

Please let me know if it works for you too @ovalseven8. Thanks!