Triggering animations with states and transitions - DATANALYTICS