How to determine the execution time of a jQuery script? -


i found interesting script (link) runs once after document loaded, how run script every time see it? guys.

jquery(document).ready(function($){     settimeout(function(){          $('.trans--grow').addclass('grow');     }, 275); }); 

you can wrap code function this:

function yourfunction (delayms) {     settimeout(function() {         $('.trans--grow').addclass('grow')     }, delayms) } 

and invoke function whenever want via yourfunction(275).


Comments

Popular posts from this blog

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -

php - Autoloader issue not returning Class -