Here is a snippet designed by Sara Bee. When you click on the ghost button it transforms into an equaliser like loading animation.
If you are having trouble with the pen, try the archived copy on GitHub
Button to Equalizer Animation Snippet
See the Pen Plotly loading button by Sara Bee (@doeg) on CodePen.0