ensure pseudo elements on before after transition