Lemmings CSS Animation

(markblah.github.io)

Comments

dieselgate 3 minutes ago
This is awesome thanks for sharing
rfarley04 5 November 2026
I played this game for dozens of hours with my dad growing up and seeing and playing with these animations is one of those times when nostalgia is so overwhelming and unexpected that I feel physically dizzy. If the animation had the sounds of lemmings dying when they fell from too high[1] I might have been hospitalized. Good work.

[1] https://www.youtube.com/watch?v=F_RmG9WB4BE

Waterluvian 5 November 2026
That’s pretty sweet.

I did something on my site recently like that where you can click a hexagon and it turns into a robot and starts SLAM mapping the page, navigating around text elements carefully.

Were you initially surprised by how easy it was to get exact block size of individual characters and not just entire dom elements? That’s the part I thought was going to be the most difficult.

cs02rm0 5 November 2026
I recently put lemmings into some clinic management software I've been working on as a software egg.

https://postimg.cc/gxvZHbgG

noufalibrahim 5 November 2026
I don't know if I'm remembering this correctly but there used to be a site called html5lemmings (or something similar) where you could play a few levels of the game. This was before modern web applications and things were still mostly server side rendered with minimal javascript. The demo was quite impressive. I don't know if it's still there. Couldn't find it with a quick search.
ggsp 5 November 2026
Cute :) It has a couple of zoom bugs on mobile, something like

html { overflow-x: clip; touch-action: manipulation; }

should fix them!

pwagland 5 November 2026
Interesting experiments and differences between the browsers.

Using the test: (async () => { const sleep = (ms) => new Promise((r) => setTimeout(r, ms)); for (let i = 0; i < 200; i++) { __walker.add(); await sleep(10); } })();

From the JavaScript console, on both Chrome and Safari.

The animation is _way_ smoother on Chrome, but scrolling on that page becomes really painful.

Safari, on the other hand, uses a lot more CPU to do the animation, and the FP of that animation drops dramatically as you change the number of lemmings from 10 -> 50 -> 100 -> 200. However scrolling the page remains smooth the entire time.

OuterVale 5 November 2026
I enjoy putting the lemming in the margin on the bottom of the viewport at the left or right side then scrolling down such that the lemming plummets. Then, scrolling up, I can make it bounce up as if it is on a trampoline. Very funny.
grumbel 5 November 2026
I vibe-ported xpenguins[1] to Web[2] recently, can be used as bookmarklet and let run on any website. No original Lemmings in that one however, only the knockoff penguins.

[1] http://xpenguins.seul.org/ and updated at https://github.com/Grumbel/xpenguins-ng

[2] https://xpenguins-web.github.io/

tniemi 5 November 2026
piratebroadcast 5 November 2026
Okay, this reminds me of an game from a similar time period where there would be these two tanks firing at each other from across the screen, one at a time. Does anybody remember that and what it was called?
bradley13 5 November 2026
Cute. However, the fact that this is possible shows how ridiculously out of control CSS is. It is supposed to control appearance, and that does not entail being Turing complete.
patwolf 5 November 2026
I remember having Lemmings and messing with the animation sprites from the game--I don't recall if they were saved in a bmp format or if it required a tool to extract. I'd try to recolor their hair or change their outfits pixel by pixel, but there were a lot of animations and a lot of frames. I always wanted to use them to build a Tetris/Lemmings hybrid game (the two games with the best music), but never got around to it.
freshteapot 5 November 2026
Took me a moment to realise I could pick them up and place them, on things and in things.

Thank you for bringing this to life.

Hunterson 5 November 2026
Awesome, brings back memories of playing lemmings on my Amiga in the early 90s
MisterMunchkin 5 November 2026
This sent me on a lemmings hunt and I found someone porting all of the lemmings games and community levels to Mac - https://github.com/ErikVeland/Lemmings
adamddev1 5 November 2026
Nothing good comes from vib...

Ok, this is awesome.

fschuett 5 November 2026
Reminds me of a similar game I had as a kid (Dweebs 2: The New Breed).

https://www.youtube.com/watch?v=82cqmq6quXI

felipeerias 5 November 2026
Love it!

It is unfortunate that the scenery is positioned in such a way that lemmings end up falling by the side all the way to the bottom of the screen.

Perhaps it would look better if you removed the padding from <body> and added more pits to the scenery.

alana314 5 November 2026
This is fantastic.
VorticonCmdr 5 November 2026
love it. I did build a html-in-canvas version (https://github.com/VorticonCmdr/lemmings) for fun and I love how creative other people get
MarkBlah 5 November 2026
A tribute to Psygnosis, just for fun
richardfey 5 November 2026
Funny how they keep hopping on a toggling horizontal scrollbar there at the bottom.
WhyIsItAlwaysHN 5 November 2026
Thank you for making this. It was really fun and a really pleasant start to my day.
rob74 5 November 2026
Cute, but it would look nicer if the walkers were... you know, actually walking? Ok, might be hard to do with CSS to be fair, I don't know enough about CSS animation to judge that.

EDIT: works in Chrome and Firefox, doesn't work in Edge (on Linux - yeah, I know almost nobody uses that) for some reason...

hoppp 5 November 2026
On android they fall down along the side all the way to the bottom
nilail 5 November 2026
Super funny idea ! But it does not follow the scroll down on Safari
swiftcoder 5 November 2026
I love that they can also walk on the text headings
allexsendev 5 November 2026
mad impressive imo, spawned like 50+ ppl and still running smooth (although must say I have a monster rig).

And I overenjoyed throwing lil marios around

ckx 5 November 2026
Really fun to play around with! Good job!
int32max 5 November 2026
we should make the web more fun and interactive like this
cheapcheerful 5 November 2026
Awesome. Loved the originals.
ForHackernews 5 November 2026
Seems like a good place to drag this one out: DHTML Lemmings from 2004(!) https://jezsoft.co.uk/online/lemm2/index.html
TheRealPomax 5 November 2026
Lemmings JS + CSS Animation
ForgotMyUUID 5 November 2026
So cute!
shevy-java 5 November 2026
That kind of misses what made Lemmings fun though.

Without digging and building stairs and parachutes, it is only Lemmings in name, not in spirit. Also, exploding lemmings - this can probably be done via CSS animations.

jdw64 5 November 2026
Oh, this game brings back memories
manif00ld 5 November 2026
this made my day
metchio 5 November 2026
this is awesome
memming 5 November 2026
Now that's what I'm talking about.
monkeydust 5 November 2026
Is there anyway to get the classic version of Lemmings (on Amiga/PC) playable on the Switch?