feat($compile): add animation hooks into compile when class attributes are used