Categories Html
7 days
30 days
All time
Recent
Popular
How to make single div(any element) CSS art - A mini thread ๐งต
Spoiler: No magic ๐ช All that's required is patience and knowing your way around some properties ๐
Let's gooo! ๐
Starting with this timelapse โณ
The "Big" trick? Layered background images ๐ฎ
With CSS you can give many backgrounds to an element. Comma separate background images and you're golden โจ๐
What would this give for a 60px square? ๐ค
๐ https://t.co/3N2SzXNn61
It's common that you'll not repeat your background image layers.
Don't repeat yourself(DRY) and drop:
"background-repeat: no-repeat;"
Beneath your background declaration ๐๐
If you watched the timelapse above, it slows where the order of background images are swapped ๐ค
Layered backgrounds are a little counter-intuitive because they work the opposite way to z-index stacking. The first is the highest, the last the lowest.
Save the last for backdrop!
What shapes can we make? Pretty much anything that we can > 1 element ๐
Examples? Create quadrilaterals using a linear-gradient from one color to the same color. Create circles with a radial-gradient from one color to transparent with a color
Spoiler: No magic ๐ช All that's required is patience and knowing your way around some properties ๐
Let's gooo! ๐
Starting with this timelapse โณ

The "Big" trick? Layered background images ๐ฎ
With CSS you can give many backgrounds to an element. Comma separate background images and you're golden โจ๐
What would this give for a 60px square? ๐ค
๐ https://t.co/3N2SzXNn61

It's common that you'll not repeat your background image layers.
Don't repeat yourself(DRY) and drop:
"background-repeat: no-repeat;"
Beneath your background declaration ๐๐
If you watched the timelapse above, it slows where the order of background images are swapped ๐ค
Layered backgrounds are a little counter-intuitive because they work the opposite way to z-index stacking. The first is the highest, the last the lowest.
Save the last for backdrop!

What shapes can we make? Pretty much anything that we can > 1 element ๐
Examples? Create quadrilaterals using a linear-gradient from one color to the same color. Create circles with a radial-gradient from one color to transparent with a color