Skip to content
Let's talk

Case study · 2025

Blinking Code Emoji

A winking text emoticon that flips colour every half second.

Year
2025
Role
Creative coding experiment
Stack
HTML, CSS, JavaScript
Live site
paraschaturvedi.github.io (opens in a new tab)
Blinking Code Emoji experiment: a grey winking kaomoji centred on a black screen

Highlights

  • A kaomoji set in an 80 pixel monospace font, centred with flexbox
  • A setInterval call toggles an orange class every 500 milliseconds
  • One HTML file under 1 KB, with no libraries

1 min readUpdated

Not every experiment has to be big. This is the smallest one in my lab: a winking kaomoji, (^‿~), sitting in the middle of a black screen in an 80 pixel monospace font, centred with flexbox.

The face starts in a dark grey that barely shows against the background. A setInterval call flips a class on it every 500 milliseconds, and that class switches the colour to a bright orange red. So the face drops back into the dark, lights up, and drops back again, once every second, a bit like a cursor blinking in a code editor.

The whole thing is one HTML file under 1 KB, with no libraries. It would work as a small idle state on a developer themed page, or as a tiny signature in a footer.