I want this effect to start when the page is loaded. Now it starts when you click on the layer.
$(document).ready(function() {
$("div").click(function () {
$(this).effect("pulsate", { times:3 }, 2000);
});
});
I also used .load(function), but this didn't help.
$(function(){
$('div').effect("pulsate", { times:3 }, 2000);
});
Trigger a click on document ready:
$(document).ready(function() {
$("div").click(function () {
$(this).effect("pulsate", { times:3 }, 2000);
}).trigger('click');
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With