A Single Div
a.singlediv.com
a.singlediv.com
If I remember right, it took advantage of a feature that let you reference CSS through the HTTP headers (so it wasn't in the HTML), then the CSS added things to implicit required elements the browser would add to the page.
"This Site Has No Code, or Does It?" https://youtu.be/msdymgkhePo
[0]: https://news.ycombinator.com/item?id=8229072 [1]: https://news.ycombinator.com/item?id=12091173 [2]: https://news.ycombinator.com/item?id=40049258
I know the current 3D graphic scene is frothing over three.js for everything but there is a place for CSS Art to be used and most people forget it or don't likely dive into it as CSS Art is really hard. I wish it was easier. three.js is great for creating big scenes but I see people creating small single character scenes for their website which can be created with CSS too!
I have spent a long time trying to recreate some of the amazing codepens I have seen and it takes my whole weekend and its not even perfect then. :(
I still think even though internet is ready for it, I don't think majority of the devices connected to the internet are capable to support WebGL properly. Yes, it differs with audience but silos are bad, create websites accessbile for everyone not just your silo perhaps.
Saying all that, three.js is not a perfect solution to everything and should be considered with it's pros and cons without creating unnecessary bloated websites.
https://github.com/Megaemce/Bonfire/blob/main/noiseSmall.svg...
<feTurbulence type="turbulance
basically creates Perlin noise.Always thought it'd be a fun project to build a small "image" editor with basic shapes that automatically outputs them as CSS code. Is anyone aware of any such tools?
[0] https://bewelge.github.io/CSS-Button-Particles/ (I just checked and the UI looks horrible on mobile. The buttons effects should still work fine though).
Lots of box shadow shenanigans, usually
To put this all in perspective, imagine developers doing this between 2012 and 2015, where many websites were still designed by using photoshop built & sliced images as backgrounds and applied on divs to achieve glorious designs. (while still needing to load all the pictures needed to achieve such designs. Then come new fascinating CSS properties that can do away with needing static images to make those same designs. Back then, such creations brought aww to fellow developers as it was out of the ordinary.
Most often the main concern wasn't performance and efficiency.
i.e. the debugger tools are useless in figuring out what the different background and box-shadow rules do.
It's interesting as a creative exercise. However I've alway found that abusing ::before and ::after is a bad practice. The desire for "clean" html is silly, clear html is easier to maintain.
Good eye for graphic design too
https://news.ycombinator.com/item?id=8070879 - Rendering Worlds with Two Triangles on the GPU (2014)
Its just pure CSS, even the animations of course.
I gather there's vector drawing tools that can make these kinds of graphics.. But perhaps those tools can't output CSS attached to one div?
However some of divs were probably made by drawing in a vector tool that could export to text then converted with a script.
> This is a CSS drawing experiment to see what's possible with a single div. To learn more about this project: GitHub: https://github.com/lynnandtonic/a-single-div Mozilla Hacks: https://hacks.mozilla.org/2014/09/single-div-drawings-with-c... Talk from CSSDay: https://lynnandtonic.com/thoughts/entries/talk-illustration-... Codepen: https://codepen.io/lynnandtonic Mastodon: @lynnandtonic@front-end.social Twitter: @lynnandtonic
Better name: (as) pure (as it gets) CSS art