can't we apply this transition using css ?