My pure CSS lighthouse took 9 hours and looked like a traffic cone until I changed one thing
So I've been messing around with a pure CSS lighthouse scene for like a month now, just divs and gradients and a bit of transform magic, no SVG, no canvas, nothing. For the first three weeks the light beam looked straight up orange and flat, like a construction cone glued to the tower. Then two nights ago I sat down in my kitchen here in Portland and read through the whole 240 lines to find out why. Turns out my radial-gradient was sitting on a solid cream background, so there was nothing behind it to make the glow feel like it was fading into the sky. I swapped the backdrop to a dark navy and layered two soft box-shadows in slightly different opacities behind the beam, and it went from cheap cone to actual soft light in about 15 minutes of fiddling. The weird part is the beam code itself never changed at all, only what was under it and what sat behind it. Now I'm wondering how much of my other CSS pieces look off just because of their background. Has anyone else fixed a whole piece just by changing what sits behind it?