diff --git a/frontend/apps/editor3d/app/public/resources/images/generate/image0.png b/frontend/apps/editor3d/app/public/resources/images/generate/image0.png index d69369ae9f..e24810495b 100644 Binary files a/frontend/apps/editor3d/app/public/resources/images/generate/image0.png and b/frontend/apps/editor3d/app/public/resources/images/generate/image0.png differ diff --git a/frontend/apps/editor3d/app/public/resources/images/generate/image1.png b/frontend/apps/editor3d/app/public/resources/images/generate/image1.png index b7e944d140..8cb0e4e032 100644 Binary files a/frontend/apps/editor3d/app/public/resources/images/generate/image1.png and b/frontend/apps/editor3d/app/public/resources/images/generate/image1.png differ diff --git a/frontend/apps/editor3d/app/public/resources/images/generate/image10.png b/frontend/apps/editor3d/app/public/resources/images/generate/image10.png index e6e74a9828..c983ec870b 100644 Binary files a/frontend/apps/editor3d/app/public/resources/images/generate/image10.png and b/frontend/apps/editor3d/app/public/resources/images/generate/image10.png differ diff --git a/frontend/apps/editor3d/app/public/resources/images/generate/image11.png b/frontend/apps/editor3d/app/public/resources/images/generate/image11.png index 77ea5e4b56..befa235c46 100644 Binary files a/frontend/apps/editor3d/app/public/resources/images/generate/image11.png and b/frontend/apps/editor3d/app/public/resources/images/generate/image11.png differ diff --git a/frontend/apps/editor3d/app/public/resources/images/generate/image12.png b/frontend/apps/editor3d/app/public/resources/images/generate/image12.png index f226cc3429..2f5210f161 100644 Binary files a/frontend/apps/editor3d/app/public/resources/images/generate/image12.png and b/frontend/apps/editor3d/app/public/resources/images/generate/image12.png differ diff --git a/frontend/apps/editor3d/app/public/resources/images/generate/image13.png b/frontend/apps/editor3d/app/public/resources/images/generate/image13.png index d3aa3add12..8a1c3c87ae 100644 Binary files a/frontend/apps/editor3d/app/public/resources/images/generate/image13.png and b/frontend/apps/editor3d/app/public/resources/images/generate/image13.png differ diff --git a/frontend/apps/editor3d/app/public/resources/images/generate/image14.png b/frontend/apps/editor3d/app/public/resources/images/generate/image14.png index 49563c366d..7126ffbb60 100644 Binary files a/frontend/apps/editor3d/app/public/resources/images/generate/image14.png and b/frontend/apps/editor3d/app/public/resources/images/generate/image14.png differ diff --git a/frontend/apps/editor3d/app/public/resources/images/generate/image15.png b/frontend/apps/editor3d/app/public/resources/images/generate/image15.png index ddc1f5060f..e93cb6b85f 100644 Binary files a/frontend/apps/editor3d/app/public/resources/images/generate/image15.png and b/frontend/apps/editor3d/app/public/resources/images/generate/image15.png differ diff --git a/frontend/apps/editor3d/app/public/resources/images/generate/image16.png b/frontend/apps/editor3d/app/public/resources/images/generate/image16.png index b2374e90e9..d2c6a082e2 100644 Binary files a/frontend/apps/editor3d/app/public/resources/images/generate/image16.png and b/frontend/apps/editor3d/app/public/resources/images/generate/image16.png differ diff --git a/frontend/apps/editor3d/app/public/resources/images/generate/image17.png b/frontend/apps/editor3d/app/public/resources/images/generate/image17.png index 1520a72bc1..153f6000e6 100644 Binary files a/frontend/apps/editor3d/app/public/resources/images/generate/image17.png and b/frontend/apps/editor3d/app/public/resources/images/generate/image17.png differ diff --git a/frontend/apps/editor3d/app/public/resources/images/generate/image18.png b/frontend/apps/editor3d/app/public/resources/images/generate/image18.png index 411ac1e4f2..c011a389d5 100644 Binary files a/frontend/apps/editor3d/app/public/resources/images/generate/image18.png and b/frontend/apps/editor3d/app/public/resources/images/generate/image18.png differ diff --git a/frontend/apps/editor3d/app/public/resources/images/generate/image19.png b/frontend/apps/editor3d/app/public/resources/images/generate/image19.png index 3afb4ed2bb..bb42981564 100644 Binary files a/frontend/apps/editor3d/app/public/resources/images/generate/image19.png and b/frontend/apps/editor3d/app/public/resources/images/generate/image19.png differ diff --git a/frontend/apps/editor3d/app/public/resources/images/generate/image2.png b/frontend/apps/editor3d/app/public/resources/images/generate/image2.png index 652a008e4c..f26581422f 100644 Binary files a/frontend/apps/editor3d/app/public/resources/images/generate/image2.png and b/frontend/apps/editor3d/app/public/resources/images/generate/image2.png differ diff --git a/frontend/apps/editor3d/app/public/resources/images/generate/image20.png b/frontend/apps/editor3d/app/public/resources/images/generate/image20.png index 45a335385c..f017a480aa 100644 Binary files a/frontend/apps/editor3d/app/public/resources/images/generate/image20.png and b/frontend/apps/editor3d/app/public/resources/images/generate/image20.png differ diff --git a/frontend/apps/editor3d/app/public/resources/images/generate/image3.png b/frontend/apps/editor3d/app/public/resources/images/generate/image3.png index 7efbe26eed..4387d466c1 100644 Binary files a/frontend/apps/editor3d/app/public/resources/images/generate/image3.png and b/frontend/apps/editor3d/app/public/resources/images/generate/image3.png differ diff --git a/frontend/apps/editor3d/app/public/resources/images/generate/image4.png b/frontend/apps/editor3d/app/public/resources/images/generate/image4.png index 102b2fa652..586ee402ca 100644 Binary files a/frontend/apps/editor3d/app/public/resources/images/generate/image4.png and b/frontend/apps/editor3d/app/public/resources/images/generate/image4.png differ diff --git a/frontend/apps/editor3d/app/public/resources/images/generate/image5.png b/frontend/apps/editor3d/app/public/resources/images/generate/image5.png index fdac17b380..ce4ec85f44 100644 Binary files a/frontend/apps/editor3d/app/public/resources/images/generate/image5.png and b/frontend/apps/editor3d/app/public/resources/images/generate/image5.png differ diff --git a/frontend/apps/editor3d/app/public/resources/images/generate/image6.png b/frontend/apps/editor3d/app/public/resources/images/generate/image6.png index 2d8e34a0eb..97fe9abd15 100644 Binary files a/frontend/apps/editor3d/app/public/resources/images/generate/image6.png and b/frontend/apps/editor3d/app/public/resources/images/generate/image6.png differ diff --git a/frontend/apps/editor3d/app/public/resources/images/generate/image7.png b/frontend/apps/editor3d/app/public/resources/images/generate/image7.png index c457d2279d..4763a994fb 100644 Binary files a/frontend/apps/editor3d/app/public/resources/images/generate/image7.png and b/frontend/apps/editor3d/app/public/resources/images/generate/image7.png differ diff --git a/frontend/apps/editor3d/app/public/resources/images/generate/image8.png b/frontend/apps/editor3d/app/public/resources/images/generate/image8.png index aac964e0c6..fc81a2eb5b 100644 Binary files a/frontend/apps/editor3d/app/public/resources/images/generate/image8.png and b/frontend/apps/editor3d/app/public/resources/images/generate/image8.png differ diff --git a/frontend/apps/editor3d/app/public/resources/images/generate/image9.png b/frontend/apps/editor3d/app/public/resources/images/generate/image9.png index d5b34b0b44..496bee4fb5 100644 Binary files a/frontend/apps/editor3d/app/public/resources/images/generate/image9.png and b/frontend/apps/editor3d/app/public/resources/images/generate/image9.png differ diff --git a/frontend/apps/editor3d/app/src/pages/PageImage/Background.css b/frontend/apps/editor3d/app/src/pages/PageImage/Background.css index 368d0ca29d..a5ac1d6e3f 100644 --- a/frontend/apps/editor3d/app/src/pages/PageImage/Background.css +++ b/frontend/apps/editor3d/app/src/pages/PageImage/Background.css @@ -1,18 +1,92 @@ -.tile-background-animation { - background-image: url("/resources/images/tilebg.png"); - background-repeat: repeat; - background-size: 512px; - animation: background-animation-scrolling 60s linear infinite; - -webkit-animation: background-animation-scrolling 60s linear infinite; - filter: grayscale(100%); - -webkit-filter: grayscale(100%); +@keyframes fadeInScale { + from { + opacity: 0; + transform: scale(0.98); + } + to { + opacity: 1; + transform: scale(1); + } } -@keyframes background-animation-scrolling { +.image-fade-in { + animation: fadeInScale 0.8s cubic-bezier(0.22, 1, 0.36, 1); + will-change: opacity, transform; +} + +@keyframes floatY { 0% { - background-position: 0 0; + transform: translateY(0px) scale(1); + } + 50% { + transform: translateY(-12px) scale(1.03); } 100% { - background-position: 512px 512px; + transform: translateY(0px) scale(1); } } + +.image-float { + animation: floatY 5s ease-in-out infinite; + will-change: transform; +} + +/* Staggered delays for up to 10 images per column */ +.image-float:nth-child(1) { + animation-delay: 0s; +} +.image-float:nth-child(2) { + animation-delay: 0.5s; +} +.image-float:nth-child(3) { + animation-delay: 1s; +} +.image-float:nth-child(4) { + animation-delay: 1.5s; +} +.image-float:nth-child(5) { + animation-delay: 2s; +} +.image-float:nth-child(6) { + animation-delay: 2.5s; +} +.image-float:nth-child(7) { + animation-delay: 3s; +} +.image-float:nth-child(8) { + animation-delay: 3.5s; +} +.image-float:nth-child(9) { + animation-delay: 4s; +} +.image-float:nth-child(10) { + animation-delay: 4.5s; +} + +@keyframes columnUp { + 0% { + transform: translateY(0); + } + 100% { + transform: translateY(-40px); + } +} + +@keyframes columnDown { + 0% { + transform: translateY(0); + } + 100% { + transform: translateY(40px); + } +} + +.column-marquee-up { + animation: columnUp 8s linear infinite alternate; + will-change: transform; +} + +.column-marquee-down { + animation: columnDown 8s linear infinite alternate; + will-change: transform; +} diff --git a/frontend/apps/editor3d/app/src/pages/PageImage/BackgroundGallery.tsx b/frontend/apps/editor3d/app/src/pages/PageImage/BackgroundGallery.tsx index 5583a10804..379c64ab94 100644 --- a/frontend/apps/editor3d/app/src/pages/PageImage/BackgroundGallery.tsx +++ b/frontend/apps/editor3d/app/src/pages/PageImage/BackgroundGallery.tsx @@ -1,14 +1,70 @@ +import { useState } from "react"; import "./Background.css"; +function getStaticImages(count: number) { + return Array.from({ length: count }, (_, i) => ({ + id: i + 1, + src: `resources/images/generate/image${i + 1}.png`, + alt: `Generated image ${i + 1}`, + })); +} + export default function GalleryBackground() { + const [frozen] = useState(false); // change this to true to make it static if it impacts pc performance - BFlat + const [images] = useState(() => { + const imgs = getStaticImages(20); + for (let i = imgs.length - 1; i > 0; i--) { + const j = Math.floor(Math.random() * (i + 1)); + [imgs[i], imgs[j]] = [imgs[j], imgs[i]]; + } + return imgs; + }); + // Distribute images into 5 columns + const columns = [[], [], [], [], []] as Array; + images.forEach((img, i) => { + columns[i % 5].push(img); + }); + return ( <>
-
-
-
+
+
+
+ {columns.map((col, colIdx) => { + // Vertical offset classes for each column + const offsetClasses = [ + "-mt-20", // col 0 + "mt-5", // col 1 + "-mt-48", // col 2 + "mt-3", // col 3 + "-mt-16", // col 4 + ]; + // Alternate marquee direction + const marqueeClass = + colIdx % 2 === 0 ? "column-marquee-up" : "column-marquee-down"; + return ( +
+ {col.map((image) => ( +
+ {image.alt} +
+ ))} +
+ ); + })} +