Tutorials Page 86
Create an Image Preview from a Video
Visuals are everything when it comes to media. When I'm trying to decide whether to watch a video on Netflix, it would be awesome to see a trailer of some kind, but alas that isn't available. When I'm looking to download a video on my computer...
New: Webdesigner News!
A new and exciting website has recently been launched for web designers and developers. You likely spend hours every morning browsing through hundreds of posts on your RSS feeds, hoping to stumble across relevant stories. Webdesigner News was built to provide web designers and developers with...
Merge GIFs with gifsicle
Creating a GIF from a video is fairly simple at this point, as I pointed out in Convert Video to GIF or GIF to Video, but working with multiple GIFs is something many people would like to do. The top GIF manipulation library for years has been
WebP Images & Performance
It's said that a picture is worth a thousand words, but online, a picture can be worth a thousand kilobytes or more! HTTP Archive shows that images make up 64% of a Web page's total size on average. With this in mind, image...
Optimize GIFs
I've written a lot about converting different media types lately, especially GIFs, including Convert Video to GIF or GIF to Video, Detect if a GIF is Animated, and Get the First Frame of an Animated GIF with ImageMagick, but whether it's ImageMagick or ffmpeg doing the work, GIFs do not always...
fetch API
One of the worst kept secrets about AJAX on the web is that the underlying API for it,
XMLHttpRequest
, wasn't really made for what we've been using it for. We've done well to create elegant APIs around XHR but we know we can do better. Our effort to...Basic AJAX Request: XMLHttpRequest
There are a number of common front-end tasks that many of us never touched the deep, dirty APIs for because our beloved JavaScript frameworks have provided easier ways to work with them. That's why I wrote How JavaScript Event Delegation Works, Do a Basic HTTP Request with...
Convert Video to GIF or GIF to Video
I feel like GIFs are more popular now than back in the day when they were just about the only way to have moving imagery on the web. They were so useful because crap like Real Video Player, Windows Media, and other crap formats all required a...
Element matches / matchesSelector
I was thinking about HTML elements and selectors recently. We usually start by searching for an element(s) via
querySelector
/querySelectorAll
, which makes sense, but what if you want to validate that an element that wasn't specifically selected matches a given selector? For example, say you have a...MutationObserver API
One of my favorite web tricks was using CSS and JavaScript to detect insertion and removal of a DOM node, detailed in Detect DOM Node Insertions with JavaScript and CSS Animations. The technique and blog post were published during a time when we didn't have a reasonable...