Add loading animatino

This commit is contained in:
Andras Schmelczer 2026-06-02 19:56:35 +01:00
parent 9272fd43a5
commit 00fa298dd5
4 changed files with 201 additions and 12 deletions

View file

@ -116,7 +116,9 @@ const renderThumbnail = (photo, isCurrent) => {
</a>`;
};
const renderFrame = (photo) => `<figure class="frame-figure">
const renderFrame = (
photo
) => `<figure class="frame-figure" style="--frame-ratio:${photo.aspectRatio}">
${renderPicture(
photo,
frameSizes(photo),