Mini Exercise: Add a Hover Animation
Open your interests.html from last session. Pick one element and add a smooth hover effect:
.my-element {
background-color: #eee;
transition: background-color 0.3s;
}
.my-element:hover {
background-color: #3b82f6;
color: white;
}
- Try changing
0.3s to 1s - what happens?
- Try
transition: all 0.3s instead - what else animates?
- Done early? Ask AI: "Add a more complex hover animation to my
interests.html" - but describe exactly which element and what effect you want before prompting.
~5 minutes, then share what you built.