Found 10569 bookmarks
Newest
Magical SVG Techniques — Smashing Magazine
Magical SVG Techniques — Smashing Magazine
Smart SVG techniques, from generative SVG grids to SVG paths with masks, grainy SVG gradients, cut-out effects and fractional SVG stars. Let’s look at some magical SVG techniques that you can use right away.
·smashingmagazine.com·
Magical SVG Techniques — Smashing Magazine
Waiting for multiple all API responses to complete with the vanilla JS Promise.all() method
Waiting for multiple all API responses to complete with the vanilla JS Promise.all() method
In yesterday’s article, I mentioned that I recently worked on a pretty big vanilla JS app. On some pages, we needed to wait for multiple API requests to complete before rendering content. Today, I want to show you a simple way to do that with the Promise.all() method. How I learned this As I was trying to figure this out, I discovered that Steve Griffith (who’s video on composition vs.
·gomakethings.com·
Waiting for multiple all API responses to complete with the vanilla JS Promise.all() method
date range filter Code Example
date range filter Code Example
var startDate = new Date("2015-08-04"); var endDate = new Date("2015-08-12"); var resultProductData = product_data.filter(a = { var date = new Date(a.ProductHits); return (date = startDate && date = endDate); }); console.log(resultProductData)
·codegrepper.com·
date range filter Code Example
How can I fetch an array of URLs with Promise.all?
How can I fetch an array of URLs with Promise.all?
If I have an array of urls: var urls = ['1.txt', '2.txt', '3.txt']; // these text files contain "one", "two", "three", respectively. And I want to build an object that looks like this: var text ...
·stackoverflow.com·
How can I fetch an array of URLs with Promise.all?
Javascript. Filter data
Javascript. Filter data
I have a stupid question. I need to filter data from variable. I have a var a: var a = "Name: Kevin, DoB: 16 May 1987, Hobby: Bikes" Now i want to assign to var B the result from var a but only ...
·stackoverflow.com·
Javascript. Filter data
Building a combined CSS-aspect-ratio-grid
Building a combined CSS-aspect-ratio-grid
Recently I was faced with the following problem. I had to build a layout that consists of several rows. In each row are two images with a fixed aspect ratio. The two images should have the same height and fill the entire row.
·9elements.com·
Building a combined CSS-aspect-ratio-grid
Contentlayer
Contentlayer
Working with content data (e.g. Markdown files or CMS) is a surprisingly difficult and laborious task when developing modern sites (e.g. with Next.js). Contentlayer is a content SDK that aims to make content easy for developers.
·contentlayer.dev·
Contentlayer
Loaders | UI Ball
Loaders | UI Ball
Free loaders & spinners for your next project. Built with HTML, CSS and a soupçon of SVG. Available for copypasta or as a tree-shakeable React component library.
·uiball.com·
Loaders | UI Ball
meyerweb.com
meyerweb.com
The web home of Eric A. Meyer, CSS guy; and his wife Kathryn, doctor of nursing.
·meyerweb.com·
meyerweb.com
Building a combined CSS-aspect-ratio-grid
Building a combined CSS-aspect-ratio-grid
Recently I was faced with the following problem. I had to build a layout that consists of several rows. In each row are two images with a fixed aspect ratio. The two images should have the same height and fill the entire row.
·9elements.com·
Building a combined CSS-aspect-ratio-grid
Migrating from Gridsome to Nuxt
Migrating from Gridsome to Nuxt
Walkthrough of what steps are required to migrate a Gridsome blog to Nuxt and highlight potential problems with the migration.
·terabytetiger.com·
Migrating from Gridsome to Nuxt