Sine Wave Help

I want to make a sine wave, that can change it’s “x” and amplitude, i can make a sine wave, but only that i can’t animate it.
I was search, but don’t find anything that can help me.

P.S. I’m sorry for bad english.