I am seeking to trigger the function below whenever its containing div parent
<div class="section">...</div>
transitions to an "active" state, for example: <div class="section active">...</div>
$(".skills-grid__col").each(function () {
var left = $(this).data('left');
$(this).animate({
opacity: 1,
left: left
}, 1200);
});
<div class="section">
<div class="skills-grid__col"></div>
<div class="skills-grid__col"></div>
</div>
What type of event would be appropriate in this scenario?