Home › Forums › JavaScript › Animate removal of class › Reply To: Animate removal of class
September 26, 2014 at 3:28 am
#184774
Participant
I want to animate background-color
on an element only when its parent has a class applied.
The demo I have built is a super stripped down version. We are using Angulars ui-grid to create a table and an active class is applied to a row
when it is clicked, but it’s the child ‘cells’ background that changes. I only want this to animate when the ‘cells’ parent has a class applied.