Toggle class when css finishes loading