Elliott Chen logo single outlinedElliott Chen logo solidElliott Chen logo text

Project Case - ChatGPT Styled Blinking Cursor

ChatGPT-styled blinking cursor, easy and pure, vanilla JavaScript code.

Project Type

Why I built it

Someone asked me if I knew how to build it, so I tried it out and it worked.

Less than 70 lines of code, vanilla JavaScript, feel free to download and play with it. What sucks is that the blinking cursor used to be a little black solid square when GPT just came out, and now is a little black solid circle, so OpenAI changes style of the cursor every once a while or they are doing a A/B testing.

As long as they don't change the look of the blinking cursor quite often enough, then this repo remains in its place. 🙋


Simple, less than 70 lines of code, eays to use, what's the reason not to like it?


More case studies

Arch The Hell Out Of It

I want to write a comprehensive comparison of all the familiar frameworks and technologies, understanding their pros and cons, thinking outside of the box, and shedding light on my thought process.

Read more

Fahoo a CMS writer

Fahoo, fatherhood, building this CMS writer for my old man who loves writing.

Read more

Let’s talk.

My location

  • Elliott Chen | Studio
    Pudong APT #213
    Shanghai, China