Problems with Canvas fade in

Giganews Newsgroups
Subject: Problems with Canvas fade in
Posted by:  aaron.… (aaronngr…
Date: Thu, 12 Nov 2020

I am trying to get text fading in and out with Canvas. Fade out is working well but fade in does not work smoothly at all.

I did a jsfiddle of what I have got :-

Would really appreciate if someone can look over this and find out whats wrong with it. I am getting exactly the same thing happen if I use alpha too.

It all seems nonlinear on fade in but fine on fade out.