How do you make a sin equation go up and down

I am looking for a way to make the amplitudes of the sin equation go up and down like an earth quake. Is there a way to do so?

Something like this?
https://www.desmos.com/calculator/cqrzrpyres

or:
https://www.desmos.com/calculator/qfm4zeezmn