Fix broken CSS animation on pageload.