Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

clear inteval

/*  add interval to a variable */
var flashing = setInterval(function(){
$('.flash').toggleClass('red');
},300);

/* add a timerout function to clear the intervalfunction  */
setTimeout(function(){
clearInterval(flashing);
},1500);
 
PREVIOUS NEXT
Tagged: #clear #inteval
ADD COMMENT
Topic
Name
8+1 =