As you see in the Pixastic example, the demo() function is called when the form is submitted.
function demo() { Pixastic.process(document.getElementById("demoimage"), "glow", { amount : $("#value-amount").val(), radius : $("#value-radius").val() }); }
So, you include glow.js in your project and call this function on hover.
$('img.myimage').hover(function() { Pixastic.process($(this), "glow", { amount : 0.5, radius : 0.5 }); }, function() { Pixastic.process($(this), "glow", { amount : 0, radius : 0 }); });
Or revert() , as the sample shows
source share