Skip to content

Instantly share code, notes, and snippets.

@Barrz417
Forked from codigoconjuan/app.js
Created June 26, 2024 20:45
Show Gist options
  • Save Barrz417/ad826efd339e3b181877d6a2dca130f8 to your computer and use it in GitHub Desktop.
Save Barrz417/ad826efd339e3b181877d6a2dca130f8 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