can't we apply this transition using a css class ?