CSS properties now restored after animation