I was testing JetBrains’
latest Full Line Code Completion plugin
in WebStorm by writing a quick JavaScript demo, and by the end, I was pretty happy
with what I had built. The JavaScript uses a queue that pushes events to change classes on buttons in 250ms
intervals
to create a smooth color transition from one style to another.
Is it practical? I don’t know, but it sure is fun. I’ve included all the demo’s contents in a single file so you can test it locally. By the end of this post, you’ll have seen an event queue and how to use it in your JavaScript.