optimization for duration = 0 skipping animation