9. Visual Enhancement
Last updated
Last updated
Let's include a function that will enable you to create fancy animations later. Add the following function just after your setup( ) function. Examples of how to add visual effects to your trivia game are available in the , but for now we will simply change the background color.
You will also need to add the following code to the end of your CSS.
You should now see that the screen’s background color changes based on the current state of the game.