Search
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...
Fix Touch Bar Volume Buttons
30.6.2019
The touch bar on MacBooks has been a source of controversy since the beginning. Many mourned the loss of the escape key, while others refused to buy a new laptop to avoid the touch bar completely. I’ve not had many issues with the touch bar but mostly because I don’t really use it. One necessary...
Different Approaches for Creating a Staggered Animation
27.6.2019
Animating elements, at its most basic, is fairly straightforward. Define the keyframes. Name the animation. Call it on an element.
But sometimes we need something a little more complex to get the right “feel" for the way things move. For example, a sound equalizer might use the same animation...
Different Approaches for Creating a Staggered Animation
27.6.2019
Animating elements, at its most basic, is fairly straightforward. Define the keyframes. Name the animation. Call it on an element.
But sometimes we need something a little more complex to get the right “feel" for the way things move. For example, a sound equalizer might use the same animation...
How to Debug Remote Browsers
27.6.2019
It’s super frustrating when bugs pop up only in a remote browser. Something about that user, that device, or that environment is different, but I don’t know what! And of course, I can’t recreate it on my local development machine. The team at TrackJS came up with a cool way...
CSS :focus-within
25.6.2019
Using :hover to display additional information or elements is a very useful technique but a big drawback to using the hover pseudo-class is that they are usually not accessibility-friendly. Not everyone uses a mouse and some users have visual impairments, so they rely on screen readers or...
Nissan má bezemisní zmrzlinářské auto. Používá staré autobaterie
22.6.2019
Zmrzlinářské dodávky sice nepředstavují z globálního pohledu nijak zásadní riziko pro životní prostředí, přesto si právě je vybrala japonská automobilka Nissan pro demonstraci svých technologií. Koncept zmrzlinářského vozidla „Sky to Scoop“ chce ukázat, jak lze realizovat jejich provoz zcela bez
Checkout the Last Public Revision with Mercurial
19.6.2019
I’ve always preferred git over Mercurial (hg) because the feature branch workflow makes organizing code and working off of master very easy. You don’t get that with vanilla mercurial — instead, commits can just sort of apply on top of each other, without much organization....
Insurtech Platform to Apply Blockchain to Auto Claims With New Funding
18.6.2019
A new insurance platform built on blockchain and AI tech has received new funding to apply the technologies to fraud detection and streamlining claims
Test Sony KD-85ZG9: Špičkový 8K televizor, který můžete mít doma. Nebo si raději koupíte auto?
17.6.2019
Dva nové televizory řady ZG9 nově doplnily OLED televizory řady Master Class. Mají LCD obrazovky s úhlopříčkou 85“ a 98“, 8K rozlišení a slibují maximální kvalitu obrazu. A přesně tu dostanete