Found 21 bookmarks
Newest
(3) joshpuckett on X: "Here's a quick visual tip to improve borders in your interfaces: use opacity instead of a solid color, and default to outside borders. Solid strokes look great on neutral backgrounds, but appear muddy or blurry if used on top of colors. https://t.co/8SPJf7mkVO" / X
(3) joshpuckett on X: "Here's a quick visual tip to improve borders in your interfaces: use opacity instead of a solid color, and default to outside borders. Solid strokes look great on neutral backgrounds, but appear muddy or blurry if used on top of colors. https://t.co/8SPJf7mkVO" / X
Solid strokes look great on neutral backgrounds, but appear muddy or blurry if used on top of colors. — joshpuckett (@joshpuckett)
·x.com·
(3) joshpuckett on X: "Here's a quick visual tip to improve borders in your interfaces: use opacity instead of a solid color, and default to outside borders. Solid strokes look great on neutral backgrounds, but appear muddy or blurry if used on top of colors. https://t.co/8SPJf7mkVO" / X
JohnPhamous on X: "perlin noise mask to make 18k dots shimmer with just css - more performant than css keyframes on 18k divs - 1 image (perlin noise) & 1 canvas (the 18k dots) - can prob be better by doing shader magic the breakdown 👇 https://t.co/YxbqeFpEjA" / X
JohnPhamous on X: "perlin noise mask to make 18k dots shimmer with just css - more performant than css keyframes on 18k divs - 1 image (perlin noise) & 1 canvas (the 18k dots) - can prob be better by doing shader magic the breakdown 👇 https://t.co/YxbqeFpEjA" / X
·twitter.com·
JohnPhamous on X: "perlin noise mask to make 18k dots shimmer with just css - more performant than css keyframes on 18k divs - 1 image (perlin noise) & 1 canvas (the 18k dots) - can prob be better by doing shader magic the breakdown 👇 https://t.co/YxbqeFpEjA" / X
Smoother & sharper shadows with layered box-shadows
Smoother & sharper shadows with layered box-shadows
With a simple CSS trick, we can get fine-tuned control over how shadows are rendered, and create richer and more realistic 3D effects
The box-shadow CSS property isn’t exactly built to encourage expressiveness. It essentially produces a blurred silhouette of an object—you can change its offset, blur radius, spread, and color, but that’s it. We can’t get anywhere near to expressing the complexities and nuances of shadows in real life.
Look at how square and clumsy the default box-shadow effect (first box) looks compared to the layered box-shadow (second box). We can achieve this effect by creating multiple box-shadows (separating each shadow with a comma), and increasing the offset and blur for every shadow (the box-shadow syntax is X-offset Y-offset blur color)
·tobiasahlin.com·
Smoother & sharper shadows with layered box-shadows
Designing Beautiful Shadows in CSS
Designing Beautiful Shadows in CSS
In my humble opinion, the best websites and web applications have a tangible “real” quality to them. There are lots of factors involved to achieve this quality, but shadows are a critical ingredient.
When I look around the web, though, it's clear that most shadows aren't as rich as they could be. The web is covered in fuzzy grey boxes that don't really look much like shadows.In this tutorial, we'll learn how to transform typical box-shadows into beautiful, life-like ones
By using different shadows on the header and dialog box, we create the impression that the dialog box is closer to us than the header is. Our attention tends to be drawn to the elements closest to us, and so by elevating the dialog box, we make it more likely that the user focuses on it first. We can use elevation as a tool to direct attention.When I use shadows, I do it with one of these purposes in mind. Either I want to increase the prominence of a specific element, or I want to make my application feel more tactile and life-like.
If you're in a well-lit room, press your hand against your desk (or any nearby surface) and slowly lift up. Notice how the shadow changes: it moves further away from your hand (larger offset), it becomes fuzzier (larger blur radius), and it starts to fade away (lower opacity). If you're not able to move your hands, you can use reference objects in the room instead. Compare the different shadows around you.Because we have so much experience existing in environments with shadows, we don't really have to memorize a bunch of new rules. We just need to apply our intuition when it comes to designing shadows. Though this does require a mindset shift; we need to start thinking of our HTML elements as physical objects.
So, to summarize:Each element on the page should be lit from the same global light source.The box-shadow property represents the light source's position using horizontal and vertical offsets. To ensure consistency, each shadow should use the same ratio between these two numbers.As an element gets closer to the user, the offset should increase, the blur radius should increase, and the shadow's opacity should decrease.
By layering multiple shadows, we create a bit of the subtlety present in real-life shadows.
We've covered 3 distinct ideas in this tutorial:Creating a cohesive environment by coordinating our shadows.Using layering to create more-realistic shadows.Tweaking the colors to prevent “washed-out” gray shadows.
·joshwcomeau.com·
Designing Beautiful Shadows in CSS
HTML DOM Event Object
HTML DOM Event Object
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
·w3schools.com·
HTML DOM Event Object
The State of Frontend 2022
The State of Frontend 2022
Based on surveys filled in by 3073 developers from 125 countries, the State of Frontend 2022 is supported by 19 expert commentaries about frontend trends and the future.
·tsh.io·
The State of Frontend 2022
Actually, the San Francisco Typeface Does Ship as a Variable Font - Chris Coyier
Actually, the San Francisco Typeface Does Ship as a Variable Font - Chris Coyier
I was recently fawning over Apple’s recently Expanded San Francisco Typeface. San Francisco really looks nice in both the compressed and expanded1 versions, across all the weights. So I ended with: Doesn’t this make perfect sense to construct as a variable font and ship the whole kit and kaboodle that way? Yes, is the answer […]
·chriscoyier.net·
Actually, the San Francisco Typeface Does Ship as a Variable Font - Chris Coyier