https://terra.layoutit.com #CSSonly #TerrainGenerator #WeekendProject #PixelArt #FunWithCSS #HackerNews #ngated
A CSS-Only Terrain Generator
#HackerNews #CSSOnly #TerrainGenerator #WebDevelopment #DesignTools
Visual loading states for Turbo Frames with CSS only
https://railsdesigner.com/visual-loading-turbo-frames/
#HackerNews #VisualLoadingStates #TurboFrames #CSSOnly #WebDevelopment #RailsDesigner
@fnohe It's actually fairly easy to create a #CssOnly dark mode: Two radio buttons let the user toggle between light/dark. In my stylesheet, I've added an `html:has(#dark-mode:checked)` rule which applies the dark theme. With more #CSS, only one button is visible at a time and both buttons look like regular ones (not like typical radio buttons). #WebDev
You can see it in action on https://blog.forgoodeyesonly.eu and https://forgoodeyesonly.eu.
I've published a #CodePen demo too: https://codepen.io/realpixelcode/pen/KwpOjeW
So I made a thing: #russian-speaking visitors are now greeted with an anti-war popup on https://forgoodeyesonly.eu and https://blog.forgoodeyesonly.eu! 🇺🇦
Feel free to copy it to your own website! You can try it out without changing your browser's language on Codepen: https://codepen.io/realpixelcode/pen/RNPOmdw
And, yes, you can adjust it to be shown without JavaScript (but to all visitors then), because the popup is actually just an #HTML details element. 😎
#StandWithUkraine #Ukraine #WebDev #EthicalWebDev #CSS #CssOnly
Minimal CSS-only blurry image placeholders
https://leanrada.com/notes/css-only-lqip/
#HackerNews #MinimalCSS #BlurryImage #Placeholders #CSSOnly #WebDesign
Also, new article's up! Exploring how I made a CSS-only slideshow with scroll snapping (plus some quick notes on radio-button approaches) 😊
You can even navigate the slideshow with arrow keys!
Overall, I'm really happy to see CSS features to control scroll behavior without JS now! Scroll snap is a joy to use, and opens the door to a lot of easy-to-do customization that required a lot of carefully managed scroll-linked event listeners before ✨