Search
Navbar Nudging on @keyframers
22.8.2019
I got to be the featured guest over on The Keyframers the other day. We looked at a Dribbble shot by Björgvin Pétur Sigurjónsson and then slowly built it, taking some purposeful detours along the way to discuss various tech.
We start by considering doing it entirely in CSS, then go for some light...
Mercurial Tips
19.8.2019
While most of the world seems to be using git for version control, Mozilla continues to use Mercurial (hg) to manage the Firefox source code. As a git and GitHub lover, it took me a while to get used to Mercurial. I don’t consider myself a hg expert but I know enough to complete...
Data URIs
18.8.2019
We’re all familiar with traditional URI protocols like https, http, ftp, and file, but data URIs have become a large part of our online strategy. We can use them to display images, the Mac camera and webcams, and more. But what if we simply want to use a data URI to convey basic data? Typing...
Sony XAV-AX8000 promění jakékoli auto v Teslu s obrovskou dotykovou obrazovkou
13.8.2019
Máte starší automobil, který sám o sobě nenabízí podporu nějakého pokročilejšího propojení s telefonem? Pak by vás mohla zaujmout následující novinka, která „udělá z vašeho auta Teslu“. Řeč je o nové verzi přijímače Sony XAV-AX8000, který ke svému fungování vyžaduje jen jednu pozici DIN pro
How to Crop Videos
9.8.2019
During a recent episode of the Script and Style podcast, I had noticed that the video recording had showed a bit of our internal chat that wasn’t necessary for our viewers to see. While there’s nothing wrong with giving viewers a peek into the show preparation, presenting the best...
then on Objects
5.8.2019
Promises were a revelation in JavaScript development, allowing us to enjoy async processing and avoid callback hell. Many new APIs like Battery API, Cache API, and others use the promise API. One fact you may not know is that you can add a then method to any object to make it Promise-like!...
Tesla získá aplikace YouTube a Netflixu. Přehrávat videa ale půjde, jen když bude auto stát
1.8.2019
Tesla chystá aktualizaci systémů pro své elektromobily a vedle vylepšení autopilota se uživatelé dočkají i rozšířených možností zábavy. Na palubním displeji přehrají videoobsah z Netflixu a YouTube, jenže ani vylepšený autopilot neumožní, aby se na filmy dalo dívat během jízdy.
Videoobsah se
Intrinsically Responsive CSS Grid with minmax() and min()
31.7.2019
The most famous line of code to have come out of CSS grid so far is:
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
Without any media queries, that will set up a grid container that has a flexible number of columns. The columns will stretch a little, until there is enough room...
CSS prefers-reduced-motion Media Query
30.7.2019
When I started in the web development industry, media queries were limited — screen and print were the two media queries I was most often using. More than a decade later, media queries have advanced to various screen units, feature checking, and even color scheme preference. I’ve been...
Optional Chaining
29.7.2019
For all of the improvements that the JavaScript language has added over the past few years, like the spread operator, default argument values, and arrow functions, there are still a few features I’d love to see implemented. On such feature is optional chaining. Optional chaining allows...
JavaScript Proxy with Storage
26.7.2019
The JavaScript Proxy API provides a wealth of “magic” within JavaScript, allowing you to use any object as sort of an alias that allows a wall of validation, formatting, and error throwing. Did you know that you could also employ the Proxy API as an abstraction to different types...
Grab a .DEV Domain from Hover! (Sponsored)
19.7.2019
I can say that the biggest and best changes in my professional life came from starting this blog — it was the springboard for conference speaking, open source, and joining Mozilla. I’ve always urged ever developer to have a blog to showcase talent, explore new technology, and to network. What’s...
Po kolouškovi další masakr: Auto Googlu srazilo zajíce, zvíře teď létá na Street View
19.7.2019
Před deseti lety se stala velmi závažná událost. Jedno ze snímacích vozidel Googlu srazilo při snímání do služby Street View malého koloucha. Tento masakr byl přitom zveřejněn v mapách Googlu. Ačkoli bylo nebohé zvíře autem Googlu svaleno na zem, neutrpělo žádné závažné zranění a po nehodě
Collective #533
18.7.2019
Is postMessage slow? * Reduced Motion Auto-Play Video * Repo Lovers * Think in Math. Write in Code.
Collective #533 was written by Pedro Botelho and published on Codrops
Detect Cryptocurrency by Wallet Address
16.7.2019
I’ve always been a massive advocate of cryptocurrency. I love the technology, the ease of use, and the freedom that cryptocurrencies bring to the world. Despite my love of crypto, I know that adoption will take a long time and that the state of crypto is not friendly to new adopters. One scary part...
CSS Gradient Text
15.7.2019
Web developers know the fight we’ve all had to improve fonts on the web. Whether it be load time, odd strategies for using custom fonts (Cufon, anyone?), or just finding the right font itself, beautifying text on the web has never come easy. That got me thinking about fonts and CSS gradients, since...
Každé druhé nové auto v Norsku už je elektrické. Spalovací motor bude do šesti let zapovězen
5.7.2019
Norský silniční svaz se pochlubil statistikami prodejů nových automobilů v zemi za poslední půlrok a překvapil neutuchajícím zájmem Norů o elektromobily. Aktuálně je každé druhé prodané auto v Norsku elektrické, přesněji je podíl elektromobilů 48,4 %. Zbytek tvoří hybridy, případně automobily pouze
The Twelfth Fourth
4.7.2019
CSS-Tricks is 12 years old! Firmly into that Early Adolescence stage, I'd say ;) As we do each year, let's reflect upon the past year. I'd better have something to say, right? Otherwise, John Prine would get mad at me.
How the hell can a person go to work in the morning
And come home in...
Set Video Playback Speed with JavaScript
2.7.2019
I love that media has moved from custom plugins (Flash…gross) to basic HTML <video> and <audio> elements. Treating these media sources as just another element allows us to use CSS filters to adjust display, for example. The less we need to do with ffmpeg or plugins, the better. I’ve been...
Making width and flexible items play nice together
1.7.2019
The short answer: flex-shrink and flex-basis are probably what you’re lookin’ for.
The long answer
Let’s say you want to align an image and some text next to each other with like this:
Now let's say you reach for flexbox to make it happen. Setting the parent element to display: flex; is a good...