I've having a hard time picturing what you're talking about. Is this like a reverse Statue of Liberty Play?
Fundamentally, as long as a hand off is backwards or parallel to the opponents goal line, it is legal (or forward in certain circumstances, but it doesn't sound like that comes into play here).