This pen is by Alex MacArthur ( @alexmacarthur) on CodePen.
Use TypeIt’s afterStep callback method to change the color of the text after a new character is printed to the screen.