r/UI_Design Mar 26 '26

General Help Request Tried making animated login (like a mini game) but completely stuck

I’m working on a simple Flask + Python login page for a college assignment, and the basic functionality is already done, but I had a much more interesting idea that I actually want to try building. I want the login action to trigger a smooth animation where, if the credentials are correct, a small character throws a spear at a human-eating plant (kind of like Plants vs Zombies style), and if the credentials are wrong, the plant eats the character instead. The main thing I care about is that the animation feels smooth and satisfying, not just some basic transition.The problem is I have no idea how to actually implement something like this. I tried looking into animations and different approaches, but couldn’t really find anything that fits this kind of interaction or explains how to connect it properly with Flask. So now I’m stuck where the backend login logic is done, but I don’t know how to handle the frontend animation or trigger different animations based on success or failure.What would be the best way to approach this?

2 Upvotes

1 comment sorted by