You can create text marquee (i.e. scrolling text left to right and right to left on the canvas) and can create a text animation such as text rotation, text highlight etc.
The article demonstrate the following text animations on the canvas. See the Demo.
All example, displays the text “Welcome” in the various animation. In the first example the text “welcome” is scrolling continuously left to right on the other hand in the second example text is scrolling right to left.And in the third example the text spins in starting small and growing to its full size as it spins. The forth animation displays text small to big size.
Examples with code
The below example shows us how to scroll the text left to right on the canvas in HTML5 without using any CSS.
The following example display a similar result to the above method but in this example text scrolls top to bottom.
The Following example gives you an idea to scrolling the text on the canvas in HTML 5.
The following code example demonstrates how to text fade in and fade out effect on the canvas in HTMl5.