Starter HTML
Every page starts the same way. Copy this into your own index.html file and build inside the body.
<!DOCTYPE html>
<html lang="en">
<head>
<title>My Magical 8 Ball</title>
<link rel="stylesheet" href="styles.css">
<script src="script.js" defer></script>
</head>
<body>
<!-- Your HTML goes in here -->
</body>
</html>
Our Goals
-
Build the ball
- Add a header
- Add a magic eight ball - can be an image, or a circle
- Add a container for where the answers will go
- Add a description of the game
-
Add styles
- Background color
- Round it into a circle
- Give the answer a glow
-
Add actions
- Make a list of possible answers
- Pick a random one when the ball is clicked
- Show the answer on the screen
-
Challenges
- Add more answers to the list
- Change the ball's colors
- Add a CSS animation
- Count how many times you've asked