There is a way, but in that way u would have to make all frames one by one, though
Press moving tool, and use ur arrows on keyboard to move layer(gradient) potition a bit to what side u want it to move, after every new animation frame u make.
It basicly has same result, only it takes more time