Angular modal directive with css animations