Search
Links on Web Components
26.5.2021
How we use Web Components at GitHub — Kristján Oddsson talks about how GitHub is using web components. I remember they were very early adopters, and it says here they released a <relative-time> component in 2014! Now they’ve got a
…
The post Links on Web Components appeared...
How to Code a Crosshair Mouse Cursor with Distortion Hover Effect
26.5.2021
A quick tutorial on how to craft a fullscreen SVG crosshair mouse cursor with a special distortion hover effect.
The post How to Code a Crosshair Mouse Cursor with Distortion Hover Effect appeared first on Codrops
What I Learned Building a Word Game App With Nuxt on Google Play
25.5.2021
I fell in love with coding the moment I created my first CSS :hover effect. Years later, that initial bite into interactivity on the web led me to a new goal: making a game.
Table of contents
What’s the game
…
The post What I Learned Building a Word Game App With Nuxt on Google Play...
Links on Performance
25.5.2021
Making GitHub’s new homepage fast and performant — Tobias Ahlin describes how the scrolling effects are done more performantly thanks to IntersectionObserver and the fact that it avoids the use of methods that trigger reflows, like getBoundingClientRect. Also,
…
The post Links...
proxy-www
24.5.2021
I like a good trick. What if… a URL was… a promise… that fetched said URL?
www.codepen.io.then((response) ={
console.log(response);
});
That’s what @justjavac did with JavaScript Proxys. A clever trick, that. Don’t @ me about the practicality. Trick…
The post...
Russian Lawmakers Move to Allow Crypto Payments Under Contracts
24.5.2021
Members of the State Duma are now working on amendments that will permit the use of cryptocurrency as a contractual means of payment. Digital financial assets are regarded as property under Russian law and the changes will legalize crypto payments between parties to a contract. State Duma to Amend...
fit-content and fit-content()
20.5.2021
Here’s some hardcore deep-dive CSS nerdery from PPK. If you can wrap your mind around min-content (the smallest an element can be based on the content it contains) and max-content (the largest the content of an element can push it) …
The post fit-content and fit-content() appeared...
The Humble `img` Element And Core Web Vitals
18.5.2021
Addy Osmani on images in HTML:
The humble <img> element has gained some superpowers over the years. Given how central it is to image optimization on the web, let’s catch up on what it can do and how it can
…
The post The Humble `img` Element And Core Web Vitals appeared...
Creating Stylesheet Feature Flags With Sass !default
14.5.2021
!default is a Sass flag that indicates conditional assignment to a variable — it assigns a value only if the variable was previously undefined or null. Consider this code snippet:
$variable: 'test' !default;
To the Sass compiler, this line …
The post Creating Stylesheet Feature Flags With...
Advanced CSS Animation Using cubic-bezier()
13.5.2021
When dealing with complex CSS animations, there is a tendency to create expansive @keyframes with lots of declarations. There are a couple of tricks though that I want to talk about that might help make things easier, while staying in …
The post Advanced CSS Animation Using cubic-bezier()...
Making Disabled Buttons More Inclusive
12.5.2021
Let’s talk about disabled buttons. Specifically, let’s get into why we use them and how we can do better than the traditional disabled attribute in HTML (e.g. <button disabled> ) to mark a button as disabled.
There are lots of …
The post Making Disabled Buttons More Inclusive...
CSS Pie Timer Re-Revisited
12.5.2021
Kitty reflected on an ancient blog post here on CSS-Tricks on how to make an animated pie timer. The old technique is still clever. The new technique is equally clever and much easier. I particularly like the steps() animation function…
The post CSS Pie Timer Re-Revisited appeared first...
Next Gen CSS: @container
11.5.2021
Chrome is experimenting with @container, a property within the CSS Working Group Containment Level 3 spec being championed by Miriam Suzanne of Oddbird, and a group of engineers across the web platform. @container brings us the ability to …
The post Next Gen CSS: @container appeared first...
Variable Aspect Ratio Card With Conic Gradients Meeting Along the Diagonal
10.5.2021
I recently came across an interesting problem. I had to implement a grid of cards with a variable (user-set) aspect ratio that was stored in a --ratio custom property. Boxes with a certain aspect ratio are a classic problem in …
The post Variable Aspect Ratio Card With Conic Gradients...
Noisy Strokes Texture with Three.js and GLSL
10.5.2021
Learn how to code up the noisy strokes effect seen on the website of Leonard using Three.js and GLSL.
The post Noisy Strokes Texture with Three.js and GLSL appeared first on Codrops
Custom State Pseudo-Classes in Chrome
6.5.2021
There is an increasing number of “custom” features on the web platform. We have custom properties (--my-property), custom elements (<my-element>), and custom events (new CustomEvent('myEvent')). At one point, we might even get custom media …
The post Custom State Pseudo-Classes...
Astro
5.5.2021
You can’t even look at code or documentation for Astro (publicly) yet — it’s an in-progress idea — but you can watch a video of Fred showing it off to Feross.
I gotta admit: it looks awesome. I’m bullish …
The post Astro appeared first on CSS-Tricks.
You can support...
16px or Larger Text Prevents iOS Form Zoom
4.5.2021
This was a great “Today I Learned” for me from Josh W. Comeau. If the font-size of an <input> is 16px or larger, Safari on iOS will focus into the input normally. But as soon as the font-size is …
The post 16px or Larger Text Prevents iOS Form Zoom appeared first...
Creating Colorful, Smart Shadows
4.5.2021
A bona fide CSS trick from Kirupa Chinnathambi here. To match a colored shadow with the colors in the background-image of an element, you inherit the background in a pseudo-element, kick it behind the original, then blur and filter it. …
The post Creating Colorful, Smart Shadows appeared...
[aktualita] Plzeňský SentiSquare získává milion eur na vývoj no-code NLP softwaru
1.5.2021
Plzeňská technologická společnost SentiSquare nabrala novou investici ve výši jednoho milionu eur. Peníze vložila česká IT společnost Ixperta a fond rizikového kapitálu Fazole Ventures, za nímž společně s kolegy stojí miliardář Pavel Bouška. SentiSquare vznikla v roce 2014 jako projekt vědců...