I am using the Raphael library and trying to animate the opacity of a rectangle from 0 to 1.
Here is the code I wrote:
this.myRect.attr( 'opacity', 0); this.myRect.animate({opacity: 1}, 1000);
This does not work, and I believe that the animation string is incorrect, since I can set the initial attribute to a lower value, and this is noticeable when I run the script.
Any ideas?
source share