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
Post a Comment