charIterator (Simple animation and loop)

Demonstrates usage of the charIterator jQuery plugin with a simple animation and a infinite loop.

HTML

<script src="https://github.com/downloads/PeeHaa/charIterator-jQuery-plugin/jquery-chariterator-min.0.1.js"></script>
<h1>charIterator <em>is</em> cool!</h1>

CoffeeScript

(function($) {
    $('h1').charIterator({
      loop: true,
      animation: function(char) {
        $(char).animate({
          opacity: 0.1
        }, 2000, function() {
          $(char).animate({
            opacity: 1
          }, 2000);
        });
      }
    });
})(jQuery);