Sha256: 2e96cf427253878077290f42c38f059edd1a21ff6b7eaab9c905fa73d1dd3f94
Contents?: true
Size: 546 Bytes
Versions: 19
Compression:
Stored size: 546 Bytes
Contents
$ = jQuery $.fn.extend afterAnimation: (fn) -> $(this).bind 'oanimationend animationend webkitAnimationEnd otransitionend transitionend webkitTransitionEnd', fn afterTransitionForAddingClass: (className, fn) -> unless $(this).hasClass('active') $(this) .toggleClass('active', true) .afterAnimation(fn) else fn() afterTransitionForRemovingClass: (className, fn) -> if $(this).hasClass('active') $(this) .toggleClass('active', false) .afterAnimation(fn) else fn()
Version data entries
19 entries across 19 versions & 1 rubygems