Your ok. I believe it has to be 3 feet from the entire shower/tub enclosure- not just the shower head. (You don't want anyone to be able to touch it while standing in water.) If you are replacing an existing fixture over the vanity I see no problems.
Worst case is the fabric grows mold. Not saying it will, but could because of the high moisture in a bathroom.