Added ngClass and ngHide animation logic