Search
Oh Hey, Padding Percentage is Based on the Parent Element’s Width
13.11.2019
I learned something about percentage-based (%) padding today that I had totally wrong in my head! I always thought that percentage padding was based on the element itself. So if an element is 1,000 pixels wide with padding-top: 50%, that padding is 500 pixels. It's weird having top padding based...
An Early Look at the Vue 3 Composition API in the Wild
13.11.2019
I recently had an opportunity to try the new Vue Composition API in a real project to check where it might be useful and how we could use it in the future.
Until now, when we were creating a new component we were using Options API. That API forced us to separate the component’s code by options...
Making an Audio Waveform Visualizer with Vanilla JavaScript
12.11.2019
As a UI designer, I’m constantly reminded of the value of knowing how to code. I pride myself on thinking of the developers on my team while designing user interfaces. But sometimes, I step on a technical landmine.
A few years ago, as the design director of wsj.com, I was helping to re-design...
With Code of Conduct, Trade Group ADAM Seeks Legitimacy for Crypto
12.11.2019
One year after its formation, the Association of Digital Asset Markets (ADAM) has drafted a code of conduct for its now 15 members
A Super Weird CSS Bug That Affects Text Selection
12.11.2019
You know how you can style (to some degree) selected text with ::selection? Well, Jeff Starr uncovered a heck of a weird CSS bug.
If you:
Leave that selector empty
Link it from an external stylesheet (rather than <style> block)
Selecting text will have no style at all....
Pac-Man… in CSS!
11.11.2019
You all know famous Pac-Man video game, right? The game is fun and building an animated Pac-Man character in HTML and CSS is just as fun! I’ll show you how to create one while leveraging the powers of the clip-path property.
See the Pen
Animated Pac-Man by Maks Akymenko (@maximakymenko)
...
For Initial Exchange Offerings, Liquidity is King
9.11.2019
There are many benchmarks for measuring IEO success. Token price, community size, code shipped, and milestones met are all yardsticks for gauging the progress of a tokenized project. For projects seeking to create the biggest possible splash, however, liquidity is the crucial factor. The more...
Two-Value Display Syntax (and Sometimes Three)
8.11.2019
You know the single-value syntax: .thing { display: block; }. The value "block" being a single value. There are lots of single values for display. For example, inline-flex, which is like flex in that it becomse a flex container, but behaves like an inline-level element rather than a block-level...
Working with Fusebox and React
8.11.2019
If you are searching for an alternative bundler to webpack, you might want to take a look at FuseBox. It builds on what webpack offers — code-splitting, hot module reloading, dynamic imports, etc. — but code-splitting in FuseBox requires zero configuration by default (although webpack will offer...
Weekly Platform News: Web Apps in Galaxy Store, Tappable Stories, CSS Subgrid
8.11.2019
In this week's roundup: Firefox gains locksmith-like powers, Samsung's Galaxy Store starts supporting Progressive Web Apps, CSS Subgrid is shipping in Firefox 70, and a new study confirms that users prefer to tap into content rather than scroll through it.
Let's get into the news.
Securely...
Kim Dotcom Token Sale Postponed Over ‘Regulatory Uncertainty’
6.11.2019
In 2017, Kim Dotcom, the founder of the now-defunct file hosting service Megaupload, revealed a similar service called K.im that planned to give anyone the ability to upload files, documents, code, videos, and music files and get paid in crypto for their work. Since then, Dotcom’s team...
Some Things You Oughta Know When Working with Viewport Units
6.11.2019
David Chanin has a quickie article summarizing a problem with setting an element's height to 100vh in mobile browsers and then also positioning something on the bottom of that.
Summarized in this graphic:
The trouble is that Chrome isn't taking the address bar (browser chrome) into account when...
What is super() in JavaScript?
6.11.2019
What's happening when you see some JavaScript that calls super()?.In a child class, you use super() to call its parent’s constructor and super.<methodName> to access its parent’s methods. This article will assume at least a little familiarity with the concepts of constructors and child...
Show Search Button when Search Field is Non-Empty
5.11.2019
I think the :placeholder-shown selector is tremendously cool. It allows you to select the placeholder of an input (<input placeholder="...">) when that placeholder is present. Meaning, the input does not yet have any value. You might think input[value] could do that, or help match on...
Float Element in the Middle of a Paragraph
4.11.2019
Say you want to have an image (or any other element) visually float left into a paragraph of text. But like... in the middle of the paragraph, not right at the top. It's doable, but it's certainly in the realm of CSS trickery!
One thing you can do is slap the image right in the middle of...
This Startup’s Upgrade Code Can Be Used by Any Bitcoin-Based Blockchain
4.11.2019
Nexus says an upgrade that brings smart-contract functionality to its blockchain can also be used by any other bitcoin-based chain
How Bitcoin’s Peer-to-Peer Cash System Was Revealed 11 Years Ago
31.10.2019
On October 31, 2008, on the eve of Halloween, Satoshi Nakamoto published the Bitcoin whitepaper. Since then the revolutionary design of the network has changed the lives of many and has transformed how we look at money today. Also read: China Ranks 35 Crypto Projects as President Xi Pushes...
Comparing the Different Types of Native JavaScript Popups
31.10.2019
JavaScript has a variety of built-in popup APIs that display special UI for user interaction. Famously:
alert("Hello, World!");
The UI for this varies from browser to browser, but generally you’ll see a little window pop up front and center in a very show-stopping way that contains the message...
New Tool Will Find Secrets – Including Crypto Keys – In Your Public Code
29.10.2019
A clever tool scours GitHub for secret keys and passwords that programmers inadvertently made public
The Current State of Styling Selects in 2019
28.10.2019
Best I could tell from the last time I compiled the most wished-for features of CSS, styling form controls was a major ask. Top 5, I'd say. And of the native form elements that people want to style, Greg Whitworth has some data that the <select> element is more requested than any other...