summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/lib/animate.js.coffee
blob: 8f892b5a2b9cc4abc0398cd7ccc33aeaefa63f1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
((w) -> 

  w.glAnimate = ($el, animation, done) ->
    $el
      .removeClass()
      .addClass(animation + ' animated')
      .one 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', ->
        $(this).removeClass()
        return
    return
  return

) window