Search

Nalezeno "images": 359

Adaptive Photo Layout with Flexbox


Let’s take a look at a super lightweight way to create a horizontal masonry effect for a set of arbitrarily-sized photos. Throw any set of photos at it, and they will line up edge-to-edge with no gaps anywhere. The solution is not only lightweight but also quite simple. We’ll be using an unordered...

The Many Ways to Link Up Shapes and Images with HTML and CSS


Different website designs often call for a shape other than a square or rectangle to respond to a click event. Perhaps your site has some kind of tilted or curved banner where the click area would be awkwardly large as a straight rectangle. Or you have a large uniquely shaped logo where you only...

An Explanation of How the Intersection Observer Watches


There have been several excellent articles exploring how to use this API, including choices from authors such as Phil Hawksworth, Preethi, and Mateusz Rybczonek, just to name a few. But I’m aiming to do something a bit different here. I had an opportunity earlier in the year to present the VueJS...

Collective #551


The perfect responsive menu * jsonbox.io * rgbShiftSlider * navi * Optimize Images for Web * Resume Builder Collective #551 was written by Pedro Botelho and published on Codrops

Automatically compress images on Pull Requests


Sarah introduced us to GitHub Actions right after it dropped about a year ago. Now they have improved the feature and are touting its CI/CD abilities. Run tests, do deployment, do whatever stuff computers do! It's essentially a YAML file that says run this, then this, then this, etc., with...

A Color Picker for Product Images


Sounds kind of like a hard problem doesn't it? We often don't have product shots in thousands of colors, such that we can flip out the <img src="product-red.jpg" alt="red product"> with <img src="product-blue.jpg" alt="blue product">. Nor do we typically have products in a vector...

The Rise of the Electric Scooter


In an electric car, the (enormous) battery is a major part of the price. If electric car prices are decreasing, battery costs must be decreasing, because it's not like the cost of fabricating rubber, aluminum, and steel into car shapes can decline that much, right? On an electric scooter, though

Creating a Maintainable Icon System with Sass


One of my favorite ways of adding icons to a site is by including them as data URL background images to pseudo-elements (e.g. ::after) in my CSS. This technique offers several advantages: They don't require any additional HTTP requests other than the CSS file. Using the background-size property...

How to Create Non-Fungible Assets and Collectible Tokens With Bitcoin Cash


On August 21, James Cramer, the developer behind the Simple Ledger Protocol (SLP), announced the launch of the Electron Cash SLP version 3.5. The latest release allows people to create a new type of SLP token called NFT1, a non-fungible token that can be grouped together by a single ID....

Getting Netlify Large Media Going


I just did this the other day so I figured I'd blog it up. There is a thing called Git Large File Storage (Git LFS). Here's the entire point of it: it keeps large files out of your repo directly. Say you have 500MB of images on your site and they kinda need to be in the repo so you can work with...

Data URIs


We’re all familiar with traditional URI protocols like https, http, ftp, and file, but data URIs have become a large part of our online strategy. We can use them to display images, the Mac camera and webcams, and more. But what if we simply want to use a data URI to convey basic data? Typing...

Accessibility and web performance are not features, they’re the baseline


This week I’ve been brooding about web performance and accessibility. It all began when Ethan Marcotte made a lot of great notes about the accessibility issues that are common with AMP: In the recordings above, I’m trying to navigate through the AMP Story. And as I do, VoiceOver describes a page...

Quick Gulp Cache Busting


You should for sure be setting far-out cache headers on your assets like CSS and JavaScript (and images and fonts and whatever else). That tells the browser "hang on to this file basically forever." That way, when navigating from page to page on a site — or revisiting it, or refreshing...

Image Trail Effects


A set of brutalist effects for mouse-following image trails that show a random series of images. Image Trail Effects was written by Mary Lou and published on Codrops

Smooth Scrolling Image Effects


A small set of ideas on animating images and other elements while smooth scrolling a page. Smooth Scrolling Image Effects was written by Mary Lou and published on Codrops

Managing Multiple Backgrounds with Custom Properties


One cool thing about CSS custom properties is that they can be a part of a value. Let's say you're using multiple backgrounds to pull off a a design. Each background will have its own color, image, repeat, position, etc. It can be verbose! You have four images: body { background-position: ...

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