View this newsletter on the web.
[Robin]: Regular contributor to the blog and all-around outstanding CSS-er, Preethi, had one of those ideas that makes me wake up as if Iāve been splashed with cold water whenever I hear it: what if we made this weird thing with CSS? How would we do that? Is this real-life thing possible in HTML?
For me, itās questions like this that make me excited about CSS.
So: āthereās a serene warmth to the early evening sunlight peaking through rustling leaves,ā writes Preethi in this post before wondering if itās possible to make a dappled sunlight effect with CSS. Well, it totally is possible! Hereās the example Preethi made:

See the background light on that wall? In Preethiās demo, that light is moving and contorting in the background, just like real light. The remarkable thing about this demo though is how that light is made. Just take a gander at the HTML:
<div class="backdrop"> <p class="shapes">š</p> <p class="shapes">š</p> <p class="shapes">\</p> </div>
What! Thatās sure neat. With those shapes, Preethi distorts the heck out of them with mix-blend-mode and the text-shadow property to make something Iāve never seen in CSS before. Because itās folks like Preethi who ask weird questions and make even weirder experiments that eventually lead to our whole industry being pushed forward in weirder and weirder directions. Exciting! |