Normally option implied vol will explode before ER due to great uncertainty of stock movement. Shorter term options will be affected most significantly by increases and subsequent decreases in implied volatility before and after earnings respectively while longer term options will be impacted to a much lower degree, we can purchase longer term options whose values are not hugely inflated while simultaneously selling shorter term options that have inflated premiums. Following the earnings announcement we know that the shorter term options will suffer from implied volatility crush to a much greater extent than the longer term options and so we can profit assuming the stock does not move dramatically to counter the benefit of implied volatility crush on the shorter term options