crimeplanner

Untitled

Mar 30th, 2013
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.             var animComplete = 'webkitTransitionEnd'
  2.                 $('#actionContainer').on(animComplete, function(){                 
  3.                     var al = $('.animated-list li')
  4.                     var max = al.length
  5.                     var ptr = 0
  6.                     al.on(animComplete, function(){
  7.                         var n = ++ptr
  8.                         if(n > max)
  9.                             return false
  10.                         doIt(n)
  11.                     })
  12.                    
  13.                     var doIt = function(index){
  14.                         $('.animated-list li:nth-child('+index+')').addClass('doingIt')
  15.                     }
  16.                    
  17.                     doIt(++ptr)
  18.                    
  19.                 }).removeClass('dormant').addClass('alive')
Advertisement
Add Comment
Please, Sign In to add comment