If you use attract, and then your opponent rotates but you don't, then if they rotate back, that Pokemon will still be infatuated.
If you use attract, and then you rotate, then the effects of attract wear off, even if you rotate back.
Source: tested in ORAS