When using animation there is a dedicated variable "t" besides "x" and "y". Therefore, you should use "sin(x-t)" in your plot pointing by right click and choosing "tRange" with Animate option .
Regards, Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"