How to use videos with alpha transparency on the web
I think it’s a little known fact that you can use video with alpha transparency on the web. Perhaps because the use cases are few. However, with UI I have been prototyping lately, I have found great utility in it when I want a fancy animation that I can’t easily re-create with SVG. The sort...
Some Innocent Fun With HTML Video and Progress | CSS-Tricks
The idea came while watching a mandatory training video on bullying in the workplace. I can just hear High School Geoff LOL-ing about a wimp like me have to
It's been some time since I started writing posts and articles about programming and related. Since the start, I've always invested time in SEO, over time, I have integrated a system that now works for me. This is an explanation how I did that.
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.
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.
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)
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 ...
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 ...