Remove tags svg
article thumbnail

Gatsby Headaches: Working With Media (Part 1)

Smashing Magazine

How about working with SVG files? If we try to load that many <img> tags at once, they will certainly slow things down and could affect the FCP. Once installed, we can replace standard <img> tags with either the <GatsbyImage> or <StaticImage> components, depending on the use case. Video files?

Media 79
article thumbnail

Free Holiday-Inspired Icon Sets And Vector Elements

Smashing Magazine

And, psst, they are perfect if you’re in need for some last-minute Christmas cards, gift tags, or wrapping paper, too. 14 illustrations are included in the pack, in SVG, PNG, and EPS formats. The Christmas Illustration Pack by Iconscout includes 14 illustrations in SVG, PNG, and EPS formats. Designed by Iconscout ).

Design 101
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Optimize Images for Web

KeyCDN

File Formats - PNG, JPEG, WebP, and SVG One of the final ways you can optimize images for web performance is to have a good strategy for the file formats you use. However, there are two other formats that you should also be considering, and that is WebP and SVG. PNG and JPEG are the most commonly used image file formats on the web.

article thumbnail

Smart CSS Solutions For Common UI Challenges

Smashing Magazine

When do we use CSS, and when do we use SVG instead? Also, take a look at Ahmad Shadeed’s piece on Thinking About The Cut Out Effect , which goes into all the fine detail of deciding when SVG might make more sense, and how to implement in a real-life scenario. Ahmad’s strategies on achieving the cut-out effect. Large preview ).

Games 144
article thumbnail

Faster Image Loading With Embedded Image Previews

Smashing Magazine

Low Quality Image Preview (LQIP) and the SVG-based variant SQIP are the two predominant techniques for lazy image loading. Unfortunately, you can’t tell an img tag in an attribute how much of the image should be loaded at what time. We use this URL as src for our img tag. Faster Image Loading With Embedded Image Previews.

Network 103
article thumbnail

Creating Custom Emmet Snippets In VS Code

Smashing Magazine

It’s a collection of mostly <head> tags and attributes I usually use on every website I build. The abbreviation nav just creates a <nav> start and end tag by default, but what I usually need is a <nav> with a nested <ul> , <li> elements and links ( <a> ). Navigation. Boilerplate Small.

Code 101
article thumbnail

Composable CSS Animation In Vue With AnimXYZ

Smashing Magazine

At the top of the page, we have a paragraph tag with a class of xyz-in and an xyz attribute with a value of fade. All we need to care about when using the `XyzTransitionGroup` component are `appear`, `appear-visible`, `duration`, and `tag`. This means that the p element will fade into the page. 25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,439,2.561L9.7,11.823a.25.25,0,0,1,0,354Z"

Media 120