animating the angular way using $animate manipulating DOM in directive not controller and making the html more declarative with its behavior