On this example, you can see how to create a toggleable waves animation without javascript.
The Extra benefit is that you know a state of animation (on/off) thanks for using checkbox
JUST FOR MAKING SNIPPET Preitiest
A Pen by Szymon Pajka on CodePen.