diff --git a/src/frontend/src/flows/dappsExplorer/teaser.ts b/src/frontend/src/flows/dappsExplorer/teaser.ts index e70d991c35..c858362eec 100644 --- a/src/frontend/src/flows/dappsExplorer/teaser.ts +++ b/src/frontend/src/flows/dappsExplorer/teaser.ts @@ -76,7 +76,16 @@ const marqueeList = (dapps: KnownDapp[]): TemplateResult => { // later. ({ logoSrc, name }) => html`
- ${name} + ${name} { + const img = e.target as HTMLImageElement; + img.classList.remove('c-marquee__image--loading'); + img.classList.add('c-marquee__image--loaded'); + }} + />
` ); diff --git a/src/frontend/src/styles/main.css b/src/frontend/src/styles/main.css index 7023bfa81d..297da81635 100644 --- a/src/frontend/src/styles/main.css +++ b/src/frontend/src/styles/main.css @@ -3251,6 +3251,15 @@ input[type="checkbox"] { height: 100%; width: 100%; object-fit: contain; + transition: opacity 0.3s ease-in; +} + +.c-marquee__image--loading { + opacity: 0; +} + +.c-marquee__image--loaded { + opacity: 1; } @keyframes marquee {