Search
Listujeme novým Computerem: za které on-line služby platíme, a za které platíte vy?
29.1.2021
Velký test herních monitorů a reproduktorů se subwooferem • Za které služby platíme my a za které platíte vy? • Ochrana mobilu dětí: má smysl?
Telegram přichází s importem konverzací z jiných aplikací. Třeba WhatsAppu či Line
28.1.2021
Komunikátor Telegram se snaží naplno využít situace, kdy mnoho uživatelů hledá alternativu k populárnímu WhatsAppu. Nyní přichází s funkcí, která umožní přenést konverzace právě z kecálku od Facebooku, či z Line a KakaoTalk.
Nedávno se Telegram pochlubil celosvětově 500 miliony aktivních
Philippine Central Bank Widens Cryptocurrency Regulation — Sees ‘Accelerated Growth’ in Crypto Activity
27.1.2021
The Philippines’ central bank, the Bangko Sentral ng Pilipinas (BSP), has expanded the country’s cryptocurrency regulation after seeing “accelerated growth” in the use of crypto exchanges. The new regulatory framework is in line with the guidelines recommended by...
You want minmax(10px, 1fr) not 1fr
22.1.2021
There are a lot of grids on the web like this:
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
}
My message is that what they really should be is:
.grid {
display: grid;
grid-template-columns: repeat(3, minmax(10px, 1fr));
}
Why? In …
The post You want minmax(10px, 1fr)...
Paramount+: nová on-line streamovací služba se spouští 4. března, míří proti Disney+
21.1.2021
Dynamic, Conditional Imports
13.1.2021
With ES Modules, you can natively import other JavaScript. Like confetti, duh:
import confetti from 'https://cdn.skypack.dev/canvas-confetti';
confetti();
That import statement is just gonna run. There is a pattern to do it conditionally though. It’s like this:
(async ()
…
The post...
Whack-a-Mole: The CSS Edition
6.1.2021
We’ve seen the checkbox hack and how it can be used to build a complete state machine in CSS. Today, we’ll take that line of thought a step further and build a simple game of Whack-A-Mole, where the player needs …
The post Whack-a-Mole: The CSS Edition appeared first on CSS-Tricks.
You...
CSS Individual Transform Properties in Safari Technology Preview
30.12.2020
The WebKit blog details how to use individual CSS Transform properties in the latest version of Safari Technology Preview. This brings the browser in line with the CSS Transforms Module Level 2 spec, which breaks out the translate(), …
The post CSS Individual Transform Properties in Safari...
Open a Browser Tab with DevTools Open by Default
28.12.2020
Using command line flags is a great way to subtly improve productivity. Whether saving yourself keystrokes or enabling specific features, it’s very much worth knowing the application flags available to you. To launch a new tab with DevTools in Chrome, you can use...
A Utility Class for Covering Elements
26.12.2020
Big ol’ same to Michelle Barker here:
Here’s something I find myself needing to do again and again in CSS: completely covering one element with another. It’s the same CSS every time: the first element (the one that needs to be covered) has position: relative applied to it....
Responsible, Conditional Loading
25.12.2020
Over on the Polyplane blog (there’s no byline but presumably it’s Kilian Valkhof), there is a great article, Creating websites with prefers-reduced-data, about the prefers-reduced-data media query. No browser support yet, but eventually you can use it in CSS to make choices that reduce...
Converting and Optimizing Images From the Command Line
21.12.2020
Images take up to 50% of the total size of an average web page. And if images are not optimized, users end up downloading extra bytes. And if they’re downloading extra bytes, the site not only takes that much more time to load, but users are using more data, both of which can be resolved, at least...
Late to Logical
7.12.2020
2020 brought another wave of logical property features to major browsers and I’ve thoroughly enjoyed my investment into logical, rather than physical, web styling. I feel like I’ve learned a new way to speak about the box model that results in less written code with more global coverage.
p {
...
How to Make an Area Chart With CSS
2.12.2020
You might know a few ways to create charts with pure CSS. Some of them are covered here on CSS-Tricks, and many others can be found on CodePen, but I haven’t seen many examples of “area charts” (imagine a line chart with the bottom area filled in), particularly any in HTML and CSS alone. In this...
Lots of Ways to Use Math.random() in JavaScript
30.11.2020
Math.random() is an API in JavaScript. It is a function that gives you a random number. The number returned will be between 0 (inclusive, as in, it’s possible for an actual 0 to be returned) and 1 (exclusive, as in, it’s not possible for an actual 1 to be returned).
Math.random(); // returns...
console.log({ myVariable });
19.11.2020
I think this might be my most popular tweet of all time, but I’m not sure how to verify that these days. I’ll restate this neat little trick here because blogging is cool and fun.
I used to do this a lot while debugging JavaScript:
console.log("myVariable: ", myVariable);
But now I...
Firefox 83
19.11.2020
There’s a small line in the changelog that is is big news for CSS:
We’ve added support for CSS Conic Gradients (bug 1632351) and (bug 1175958).
🎉🎉🎉
Conic gradients are circular, just like their radial counterpart, but place color stops...
Chat App Line Offers Crypto Cashback-type Rewards for e-Pay Spending
18.11.2020
Japan-based chat app operator Line has upped the stakes in its crypto business again by combining its Line Point Club rewards program with its link (LN) cryptoasset – allowing earners to trade in their points for link tokens.
The new program, which launched this week, will make use of the firm’s...
Libraries for SVG Drawing Animations
11.11.2020
In 2013, Jake Archibald introduced this cool trick of animating an SVG path to look like it’s drawing itself. It’s 2020 now, and the trick is still popular. I’ve seen it on a lot of websites I’ve visited recently. I, too, feature an animated SVG loader on my website using one of the libraries I’ll...
Understanding flex-grow, flex-shrink, and flex-basis
11.11.2020
When you apply a CSS property to an element, there’s lots of things going on under the hood. For example, let’s say we have some HTML like this:
<div class="parent"<div class="child"Child</div<div class="child"Child</div<div class="child"Child</div</div
And...