fade down, STOP. fade up, STOP.

ok so this fade sequence I'm conceptually looking at as an animation. this is whats obviously going on:

you go above 15, it triggers the fade to 255.

below, triggers fade to 0.

now my question: i want the led to reach end of the loop and STOP at the values for each statement. so, you go above 15, it triggers the fade "animation" to 255 and STOPS until you reverse and the same holds true other direction.