Created
November 11, 2009 12:29
-
-
Save jney/231903 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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