Skip to content

Instantly share code, notes, and snippets.

@jney
Created November 11, 2009 12:29
Show Gist options
  • Save jney/231903 to your computer and use it in GitHub Desktop.
Save jney/231903 to your computer and use it in GitHub Desktop.
window.onload = function () {
var r = Raphael("holder", 800, 200),
str = r.print(180, 100, "86.68.254.163", r.getFont("Bangalore"), 50);
str.attr({fill: "#f00", opacity:.5, scale: ".05,.05" });
(function(pos){
var args = arguments;
if(pos>=str.length) pos = 0;
str[pos].animate({opacity:1}, 200, function(){
this.animate({opacity:.5}, 200); // it is not executed why ?
// this.attr({opacity:.5}) // but this works
args.callee(pos+1);
})
})(0);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment