Changed animation effect handler to fire only on the first didInsertElement