-
+
+ {#if shop.module_images}
+
+ {#each shop.module_images as { directus_files_id: { id }, title }, index}
+
+ {/each}
+
+ {/if}
diff --git a/src/routes/__layout.svelte b/src/routes/__layout.svelte
index 39628e4..c85f959 100644
--- a/src/routes/__layout.svelte
+++ b/src/routes/__layout.svelte
@@ -129,9 +129,11 @@
enabled
module_title
module_text
- module_image {
- id
- title
+ module_images {
+ directus_files_id {
+ id
+ title
+ }
}
}
diff --git a/src/style/organisms/_shop.scss b/src/style/organisms/_shop.scss
index 5b4113e..331c56e 100644
--- a/src/style/organisms/_shop.scss
+++ b/src/style/organisms/_shop.scss
@@ -17,11 +17,26 @@
}
}
- // Image
- &__image {
+ // Images
+ &__images {
position: relative;
overflow: hidden;
+ picture {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ opacity: 0;
+ transform: scale3d(1.075, 1.075, 1.075);
+ transition: opacity 0.8s, transform 1.6s var(--ease-quart);
+
+ &.is-visible {
+ opacity: 1;
+ transform: scale3d(1,1,1);
+ }
+ }
img {
display: block;
width: 100%;