Last active
August 12, 2024 22:18
-
-
Save codigoconjuan/2c0cca9536a571db3942248f3e8a9b08 to your computer and use it in GitHub Desktop.
Picture con imágenes AVIF y WEBP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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