r/javascript • • Jan 31 '19

CSS LEGO Minifigure Maker

https://codepen.io/joshbader/full/MZMzjr
432 Upvotes

21 comments sorted by

41

u/basically_alive Jan 31 '19

That's pretty incredible. Was any program used to generate the CSS? So many gradients.

4

u/[deleted] Feb 01 '19

It seems like they’re using sliders to generate the HSL color values, no gradients required.

11

u/ReceivePoetry Jan 31 '19

Well that's tons of fun, love it!

5

u/[deleted] Jan 31 '19

Pure genius.

4

u/DanteMontovano Jan 31 '19

This is awesome!! I noticed when you explode and implode the head goes behind the neck. It should go in front of the neck for a more seamless experience.

3

u/[deleted] Jan 31 '19

Well done!

2

u/nowtayneicangetinto Jan 31 '19

damn this is cool. well done.

2

u/AxonTheSolution Feb 01 '19

This is really well made, the JS is concise and easy to understand.

It just irritates me that the hips don't line up with the torso

1

u/Logoliberation Feb 01 '19

This is awesome OP. Great job.

1

u/[deleted] Feb 01 '19

That's pretty neat

1

u/coderitual Feb 01 '19

Fantastic work!

1

u/[deleted] Feb 01 '19

Great stuff 👍

1

u/miyuku Feb 01 '19

Well done, it's so cool!

1

u/this_is_alin Feb 02 '19

Woho that's incredible man!

1

u/SavageBlades Feb 01 '19

Not very mobile friendly but very impressive!

-5

u/[deleted] Jan 31 '19

Not mobile friendly. Close though.

7

u/sysrage Jan 31 '19

Works decently on iOS.

4

u/epigrams Jan 31 '19

Not sure have a mobile, mate. Works fin on Android and iOS here :)

1

u/circusmeerkat Feb 01 '19

Works great on my Pixel

0

u/[deleted] Jan 31 '19

[deleted]

15

u/Cerothen Jan 31 '19

The head is still randomized actually, the lego figure is just surprised that you exploded him. When you unexplode him you see the new face. A small but awesome feature. haha