Fades

Hello all, n00b here with a question. I’m having trouble with fading a image in, then have it fade out. All I can accomplish is the fade in with out the fade out, or vice versa. Any help would be nice. Thanks!