Search

Nalezeno "function": 187

Promise.allSettled


The Promise object has many useful functions like all, resolve, reject, and race — stuff we use all the time. One function that many don’t know about is Promise.allSettled, a function that fires when all promises in an array are settled, regardless of whether any of the promises...

Binding Arguments with Bind


One of my favorite and most essential Function method is bind, a function we added to MooTools when it wasn’t featured in the JavaScript language itself. We often think of using bind to simply bind a method’s call to its host object, but did you know you can also bind arguments with...

Striking a Balance Between Native and Custom Select Elements


Here’s the plan! We’re going to build a styled select element. Not just the outside, but the inside too. Total styling control. Plus we’re going to make it accessible. We’re not going to try to replicate everything that the browser does by default with a native <select> element. We’re going...

CoinMarketCap Launches Chat


As you may or may not have noticed, CoinMarketCap released a long-awaited logins function for its website this week. UsersContinue Reading The post CoinMarketCap Launches Chat appeared first on CoinMarketCap Blog

Building Your First Serverless Service With AWS Lambda Functions


Many developers are at least marginally familiar with AWS Lambda functions. They’re reasonably straightforward to set up, but the vast AWS landscape can make it hard to see the big picture. With so many different pieces it can be daunting, and frustratingly hard to see how they fit seamlessly into...

No-Comma Color Functions in CSS


There have been a couple of viral tweets about this lately, one from Adam Argyle and one from Mathias Bynes. This is a nice change that makes CSS a bit more clear. Before, every single color function actually needs two functions, one for transparency and one without, this eliminates that need...

Indicating Scroll Position on a Page With CSS


Scrolling is something we all know and do on the web to the extent that it’s an expectation or perhaps even a habit, like brushing our teeth. That’s probably why we don’t put too much thought into designing the scrolling experience — it’s a well-known basic function. In fact, the popular “there...

A Complete Guide to calc() in CSS


CSS has a special calc() function for doing basic math. Here's an example: .main-content { /* Subtract 80px from 100vh */ height: calc(100vh - 80px); } In this guide, let's cover just about everything there is to know about this very useful function. calc() is for values The only place you...

Ethereum Community Enthralled Over Controversial ProgPoW Proposal


The Ethereum community has been debating a proposal called ProgPoW as many ETH proponents believe the Programmatic Proof-of-Work function will alter the network significantly. The contentious topic has seemed to galvanize the community, with the ProgPoW proposal favored by a significant proportion...

Currying in CSS


Funny timing on this I was just looking at the website for Utopia (which is a responsive type project which I hate to admit I don't fully understand) and I came across some CSS they show off that looked like this: :root { --fluid-max-negative: (1 / var(--fluid-max-ratio)...

Bitcoin Mining Investment Strong – BTC Hashrate Surpasses All-Time High


On Monday, March 2, miners processing blocks on the BTC network surpassed the network’s all-time high as the overall hashrate touched 136 exahash (EH/s). The record-breaking achievement happened despite the price of BTC dropping below the $9K region throughout the course of the last week....

Unfortunately, clip-path: path() is Still a No-Go


I was extremely excited when I first heard that clip-path: path() was coming to Firefox. Just imagine being able to easily code a breathing box like the one below with just one HTML element and very little CSS without needing SVG or a huge list of points inside the polygon function! Chris...

Moving from Vanilla JavaScript to a Reusable Vue Component


I recently wrote an article explaining how you can create a countdown timer using HTML, CSS and JavaScript. Now, let’s look at how we can make that a reusable component by porting it into Vue using basic features that the framework provides. Why do this...

Binance Announces Addition of Eight New Crypto Assets to the Convert Function


World’s leading crypto exchange announced on Tuesday that it has added eight new crypto assets to the convert function, which means that these cryptocurrencies can now be converted to the other ones. This will improve the flexibility for traders, especially those who prefer trading as per market...

Resizing Values in Steps in CSS


There actually is a steps() function in CSS, but it's only used for animation. You can't, for example, tell an element it's allowed to grow in height but only in steps of 10px. Maybe someday? I dunno. There would have to be some pretty clear use cases that something like background-repeat: space...

Coinme Adds BTC Purchase Function to Over 100 Coinstar Kiosks in California


With over 21,000 kiosks in the U.S., Coinstar is a popular automated service for those who want to turn their fiat coins into paper cash. 3,000 of these kiosks have been integrated with Coinme to include crypto purchase functionality, and more than 100 BTC-integrated Coinstar kiosks are now newly...

Re-creating the ‘His Dark Materials’ Logo in CSS


The text logo has a slash cut through the text. You set two copies on top of one another, cropping both of them with the clip-path property. What's interesting to me is how many cool design effects require multiple copies of an element to do something cool. To get the extra copy, at least with...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace