What do you mean by fade based on it's position with this code?
fade based on it's position with this code