Search

Nalezeno "images": 359

Perfect Image Optimization for Mobile with Optimole


(This is a sponsored post.) In 2015 there were 24,000 different Android devices, and each of them was capable of downloading images. And this was just the beginning. The mobile era is starting to gather pace with mobile visitors starting to eclipse desktop. One thing is certain, building...

Planning for Responsive Images


The first time I made an image responsive, it was as simple as coding these four lines: img { max-width: 100%; height auto; /* default */ } Though that worked for me as a developer, it wasn’t the best for the audience. What happens if the the image in the src attribute is heavy? On high-end...

Did you know that CSS Custom Properties can handle images too?


So you might be aware of CSS Custom Properties that let you set a variable, such as a theme color, and then apply it to multiple classes like this: :root { --theme: #777; } .alert { background: var(—-theme); } .button { background: var(—-theme); } Well, I had seen this pattern so often...

How to Create a Fake 3D Image Effect with WebGL


Learn how to create an interactive "fake" 3D effect for images with depth maps and plain WebGL. How to Create a Fake 3D Image Effect with WebGL was written by Yuriy Artyukh and published on Codrops

Social Cards as a Service


I love the idea of programmatically generated images. That power is close at hand these days for us front-end developers, thanks to the concept of headless browsers. Take Puppeteer, the library for controlling headless Chrome. Generating images from URLs is their default use case: const puppeteer...

“the closest thing web standards have to a golden rule”


The internet's own Mat Marquis plucks this choice quote from the HTML Design Principals spec: In case of conflict, consider users over authors over implementors over specifiers over theoretical purity. And then he applies the idea to putting images on websites in 2019. Direct Link to Article...

SVG Filter Effects: Duotone Images with <feComponentTransfer>


This fourth article in our SVG Filter series will show you how to use feComponentTransfer to create a duotone filter effect. SVG Filter Effects: Duotone Images with &lt;feComponentTransfer&gt; was written by Sara Soueidan and published on Codrops

How do you figure?


Scott O'Hara digs into the &#60;figure&#62; and &#60;figcaption&#62; elements. Gotta love a good ol' HTML deep dive. I use these on just about every blog post here on CSS-Tricks, and as I've suspected, I've basically been doing it wrong forever. My original thinking was that a figcaption was just...

Using Artificial Intelligence to Generate Alt Text on Images


Web developers and content editors alike often forget or ignore one of the most important parts of making a website accessible and SEO performant: image alt​ text. You know, that seemingly small image attribute that describes an image: ​​​&#60;img src="/cute/sloth/image.jpg" alt="A brown baby sloth...

JavaScript Labels


No matter how long you&#8217;ve been a JavaScript developer, there will always be language features that you didn&#8217;t know about until you saw them in a fringe piece of code. Your reaction generally is a bit like: One of those features I see developers quizically trying to figure out...

Colorized Brackets for IDE


Coders treat their text editors and IDE&#8217;s like fragile beings, and for good reason: we spend a ton of time in them and having our tweaks and extensions can make us incredibly productive for our personal workflows. I always love hearing about what extensions and workflows other developers...

Git Checkout at Previous Timeframe


In the past I&#8217;ve blogged about checking out branches created on a specific date as well as sorting git branches by date, but one frequent usage of git and dates is checking out a commit at a given time in the past. For example, I often say &#8220;Weird, this feature was working a month...

Background Sync with Service Workers


Service workers have been having a moment. In March 2018, iOS Safari began including service workers &#8212; so all major browsers at this point support offline options. And this is more important than ever &#8212; 20% of adults in the United States are without Internet at home, leaving these...

Jetpack


My favorite way to think about Jetpack is that it's a WordPress plugin that brings a whole heap of features to your site. I've documented the features that we use here on CSS-Tricks, which isn't even all of them (yet). Some of Jetpack features are essentially connecting it to the powers...

How to Change the WordPress Admin Login Logo


There are numerous content management systems that thrive these days but none are as prolific as WordPress. Every client wants the ability to change their website at a moment&#8217;s notice and they want to do it themselves, and again, WordPress is the best fit for that. You fit the client with...

How to Change the WordPress Media Upload Directory


One thing I&#8217;ve always missed about the &#8220;old&#8221; way of web development was the simplicity of FTP. No deploy scripts, no fuss: simple drag and drop of files and the files are there. I&#8217;ve used FTP for assets on this blog for over a decade but I&#8217;m finally ready to be lazy...

Goals for 2019


Every turn of the year is a new opportunity to start over, set goals, and renew optimism that time can heal wounds and drive us to change and achieve. I did really well with my 2018 goals: I started a fun podcast with TrackJS&#8217; Todd Gardener I found my passion again by joining Mozilla&#8217;s...

How to Send an iMessage From Command Line


As somewhat of a recluse, believe me when I say that text messages, instant messenger, and iMessage have relieved me of loads of anxiety and wasted time with short, meaningless voice chat. It&#8217;s been a decade since these communication types have become popular so we&#8217;ve moved on from...

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