Found 32 bookmarks
Newest
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
Scroll Fading 101
Scroll Fading 101
Whether scroll fading is more distracting than usable depends on the following factors: its persistence, responsiveness, and how sparingly it is applied to elements on the page. When used right, this design pattern can improve brand perception, optimize page loading, and make content more digestible.
·nngroup.com·
Scroll Fading 101
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
Useful string methods - Learn web development | MDN
Useful string methods - Learn web development | MDN
Now that we've looked at the very basics of strings, let's move up a gear and start thinking about what useful operations we can do on strings with built-in methods, such as finding the length of a text string, joining and splitting strings, substituting one character in a string for another, and more.
·developer.mozilla.org·
Useful string methods - Learn web development | MDN
Functions
Functions
Function starting with… "get…" – return a value, "calc…" – calculate something, "create…" – create something, "check…" – check something and return a boolean, etc.
·javascript.info·
Functions
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