I draw plain text in an HTML5 canvas using this:
context.fillStyle = "#FF0000" context.font = "italic 20pt Arial"; context.fillText("sfddsfs", 50, 50);
Now I want to animate to disappear from this text. How can I do that?
Edit: I know that there is currently no ready-to-use way to do this (at least I can't find anything). I am noob in graphic programming, but I want to study, so any hint about where to start is appreciated.
Maybe something like putting text in your own canvas and changing globalAlpha on the canvas ...? But the canvas background should be transparent. And I donβt know about performance, there are many small shortcuts appearing and disappearing everywhere that need to fade away.
javascript html5 canvas effects
Ix
source share