mastodon.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
The original server operated by the Mastodon gGmbH non-profit

Administered by:

Server stats:

360K
active users

Ana Tudor 🐯

As someone hearted ❤️ a 2015 demo of mine, I decided that since got better (and hopefully I did too), I should go for a quick 2024 remake.

Here it is on @codepen
codepen.io/thebabydino/pen/wKo

It's mindblowing 🤯 how much I could reduce the (esp. compiled) code - check it out!

HTML by 73%!
CSS by 70%!

I repeat: I shaved off at least 70% from each! ‼️

#Sass#SCSS#Haml

Back in '15, I had 16 cube elements, each with 3 descendants.
Now I have 16 empty cube elements.
I went from 64 descendants inside the grid element to just 16.

Back in '15, I was stacking all absolutely positioned cube elems in the middle, looping through them all to manually compute their grid positions incl. gaps, put them in the right place using translate(). This bloated compiled CSS.

Now I just use grid, no looping necessary!