The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Animate removal of class Reply To: Animate removal of class


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.