Making an Infinitely Changing CSS Variable
September 2025
This post is currently a question.
I'm working on a project where I want to have some CSS variables change constantly. I'm doing it with a call that loops back on itself.
HTML
Change is welcome
Output
Change is welcome
CSS
}
}
JavaScript
;
Thoughts?
That's doing what I want. Just wondering if there are other options to consider (or if this is gonna blow up in some way I don't know about).
Let me know if you've got info.
Thanks,
-a
end of line