Skip to content

Instantly share code, notes, and snippets.

@codigoconjuan
Last active August 12, 2024 22:18
Show Gist options
  • Save codigoconjuan/2c0cca9536a571db3942248f3e8a9b08 to your computer and use it in GitHub Desktop.
Save codigoconjuan/2c0cca9536a571db3942248f3e8a9b08 to your computer and use it in GitHub Desktop.
Picture con imágenes AVIF y WEBP
imagen.innerHTML = `
<source srcset="build/img/gallery/thumb/${i}.avif" type="image/avif">
<source srcset="build/img/gallery/thumb/${i}.webp" type="image/webp">
<img loading="lazy" width="200" height="300" src="build/img/gallery/thumb/${i}.jpg" alt="imagen galeria">
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment