I\'m looking for a way to do the following.
I add a
jQuery UI Highlight Effect is what you're looking for. The documentation and demo can be found here Edit: Edit #2: ...so it won't go any lower than 50% opacity.
$("div").click(function () {
$(this).effect("highlight", {}, 3000);
});
Maybe the jQuery UI Pulsate Effect is more appropriate, see here
To adjust the opacity you could do this:$("div").click(function() {
// do fading 3 times
for(i=0;i<3;i++) {
$(this).fadeTo('slow', 0.5).fadeTo('slow', 1.0);
}
});