Angular directive for a progress spinner using css transitions