One way to do it is to use a ramp or something similar for the transparency. Just delete all but one colour on it so it is a flat colour.
Then on the colour node for the ramp just set a key. This will create an expression and you can now animate it in the curve editor.