Click Style is a simple but good looking and helpful jQuery plugin. It styles the way a button looks when clicked automatically
Put the jquery.clickstyle.min.js and clickstyle.css(optional) into your website's directory.
In HTML file add:
<script src="jquery.clickstyle.js"></script>In jQuery script add:
$('button').clickStyle();To change the parameters, do this:
$('button').clickStyle({
onclick: true,
color: "white",
background: "#29bf35",
text: "Success!",
rotate: true,
transition: "1000",
bordercolor: "none"
});Inside the quotation marks change it to your desires.
npm install click-style