Recently I was wondering how they created that click animation in material design. So i made my own and you can check the code here https://github.com/ibudiallo/buttons
Note that it works without js, but js allows to position the button press effect right under the mouse.