<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> <script>$(".test").click(function () { $(this).effect("highlight", {}, 3000);});</script> <script> $(function(){ $('.blink-bg ').effect("pulsate", { times:2000 }, 3000); }); </script>
- Thanks :)
In the css make .blink-bg or what ever name you want.
and set that background color. You could also do this with CSS3
codepen b & g
colours are much prettier : )