Random Quote machine Animated transition effect in REACT

Tell us what’s happening:
Describe your issue in detail here.
Hi, I am working on random quote machine, I wanted to use react for this purpose, my quote machine is working fine, but I need help to change colors randomly, and get animated transition of colors just as shown in example project,

Your code so far

link to my codepen

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Build a Random Quote Machine