This week we learned about DOM elements. For inspiration I used Moon’s workshop example.
After manipulating it a little, I created what looks like abstract butterflies. Then I added some sliders and buttons to change the colors. I tried to create a slider to change the amount of “butterflies” but found that since that for loop was in the setup, I couldn’t get it to work. Would I have to make another function in order to do this?
- Is there a way to have font from an HTML element put behind an JS element?
- Can the font style be put together in one style function rather than multiple lines?