I rebuilt an animated login page from a video a friend sent me, frame by frame
Nevil Krishna K8 min readAbout a year ago a friend sent me a ten second screen recording of a login page. Four shapes, purple, black, orange and yellow, each with a face, all of them watching your cursor like it owed them money. It was a challenge, and I took a year to answer it.
The answer is an animated login page on GitHub, MIT licensed, and a live demo you can poke at. I am giving the project to Saiprasad Balasubramanian, who sent me that video, and this post is the long way of saying why.

A stranger asked for a Google Meet
Last year I was job hunting. A company had given me an offer letter, then kept me waiting two or three months, and nothing ever came of it. I will not say who. I did say, in a comment on a random LinkedIn post, how that felt. I also said I was getting zero calls from anyone else.
A stranger saw the comment. Saiprasad connected with me and asked if we could get on a Google Meet.
I spent a while overthinking that. Why would a stranger want to talk to an unemployed me? Is this a trap, a course, a very polite scam? I said yes anyway, mostly because I had run out of other things to do.
The next day, on the call, I was anxious for no good reason. Saiprasad spoke in a gentle voice and said he had been in my shoes before. That was why he reached out, and why he wanted to help. We talked for about an hour. I do not remember being that relieved after a call in a long time.
Then it kept happening
We talked several more times. Saiprasad taught me a lot, reviewed my resume, and connected me with friends in tech. Together with them we rewrote the resume into a whole different vibe. I am not exaggerating, he and his friends made it so good. I would read it and think I wanted to hire this person.
Then the interview prep, and then the calls started coming in. Left and right. From zero to more than I could schedule. I thanked Saiprasad, and the answer was to keep improving, keep learning and get ready, because he and his friends were going to recommend me to that company.
That part did not happen. I will not pretend it did. But Saiprasad had taught me plenty by then, and kept telling me the same thing: never give up, keep hope, if you work hard enough you can be great, you have a strong skill set. People say that all the time. It lands differently when someone has spent hours of their own time proving they mean it.
Around then, Saiprasad also shared the screen recording of the login page. I took it as a challenge, as in: can you build this?
I can. It just took me a year.
What I had to work from
The recording is 251 frames at 24 frames per second. I do not know who made the original, and I am not claiming to. All I had was the video and a stubborn streak.
The page itself is plain HTML, CSS and JavaScript with inline SVG. No build step, no dependencies. Open the file and it runs.
Measuring a video frame by frame
My first plan was to watch it a lot and copy what I saw. That produced characters that were close and wrong in ways I could not name.
So I measured instead. A small Python script went through every frame and split it by colour: purple, orange, yellow and near black. For each colour it fitted a rotated rectangle or an ellipse, which gives a position, a size and an angle per frame. Twenty seven of those measured keyframes now drive the arrival animation.
The numbers found three things my eyes had skipped.
- The black block arrives upside down, then flips a half turn.
- The orange shape flies in as a pill, lands, and only then grows into its dome.
- The yellow beak starts on top of its eye and slides out.
I would have sworn none of that was in there. It is all in there. You watch the video ten times and see "shapes appear". You measure it once and see choreography.
After they land, it is just springs
Once the arrival is over, a small spring physics system takes the wheel. Every character has a target and chases it with a little overshoot, which is what makes them feel alive and not like a CSS transition.
Each one looks at your cursor with its own lag. Orange is the slowest, yellow the fastest, so they never turn in unison. It reads like four coworkers noticing the same thing at different speeds.
While you type your email they lean towards the form. If the email is long, the purple one bends like a banana. I did not plan the banana, but I kept it.

Reveal the password and they look away, politely, like you just undid a button on a coat.

Get the login wrong and they go sad. The first version showed the sad faces for a blink and moved on, and a person who tried it said they never got to see them. Fair. They need time to be sad properly. A failed login now holds the pose for at least 3.2 seconds.

Three bugs worth telling
The stubby beak. When the cursor went far to the left, the yellow beak shrank to a stub. I had put its pivot at eye height. In the video it pivots somewhere else, and the stub was the page telling me so.
The confusing yellow. When yellow looked down, the beak tilted so far that the face stopped reading as a face. The video never does that. Clamping the beak tilt to 14 degrees fixed it, and it is the kind of number I could only have found by measuring.
The beak and the black block. Pointing left, the beak has to disappear behind the black block. Pointing right, it has to show over the yellow body. One element cannot sit in front of and behind the same neighbour. I drew two copies of the beak, each clipped to its own region, and the problem went away.
Testing something I cannot look at
I cannot watch 251 frames of animation and tell you whether frame 130 is right. So I did not rely on my eyes.
The page runs against a fake browser clock, which makes a replay deterministic: same input, same frame, every time. Then I built contact sheets with the video frame on one side and my page on the other, frame against frame, and compared them. When a character sat three pixels off, the sheet showed it.
Does it still work on a phone
On a narrow screen the scene stacks above the form. With no mouse to follow, the characters look at whichever field you tap into, and lean in as you type.


If your system asks for reduced motion, the page respects it: no confetti and no hop.
Try it, and see what the happy path looks like
The demo is for demonstration only, and getting in is easy. Type any valid email and any password of eight characters or more, press Log In, and you are signed in. The welcome message even picks your name out of the email address. To see the sad faces on purpose, start the password with "wrong".
On success there is a confetti burst in the characters' colours, then a note: "This is an animated login page for demo purposes only. Thank you for testing it out!" There is a GitHub icon on the page too, in case you want the source.

This is a recreation. It is close, and it is not pixel identical. The original author is unknown to me, and if you made the video, I would love to hear from you.
Thank you, Saiprasad
I started this page as a way to answer a challenge. By the time I was fitting rectangles to purple pixels, it had turned into something else. It was a way to say thank you.
Saiprasad, I am finishing this a year late and giving it to you. You called me when I had no calls, you were gentle when I was anxious, and you told me to keep going. The characters follow the cursor. I followed your advice. It only took me a year to get there.
- JavaScript
- SVG
- Animation
- CSS
- Career
Building something like this?
Tell me what you are building. You get a fixed scope and a fixed figure back, from the person who writes the code.
5.013 reviews onGoogle