diff --git a/src/components/BreathPage/index.tsx b/src/components/BreathPage/index.tsx index ad0c689..df56535 100644 --- a/src/components/BreathPage/index.tsx +++ b/src/components/BreathPage/index.tsx @@ -102,12 +102,19 @@ function BreathPage(): JSX.Element { <>
+ {!isOpenModal && asset?.url && ( +
+ leo apng +
+ )} {!isOpenModal && isShowPreview && (
leo diff --git a/src/components/BreathPage/styles.module.css b/src/components/BreathPage/styles.module.css index edf989c..6ac4cb6 100644 --- a/src/components/BreathPage/styles.module.css +++ b/src/components/BreathPage/styles.module.css @@ -5,12 +5,25 @@ justify-content: center; align-items: center; background-color: #01010b; - background-repeat: no-repeat; - background-size: cover; - background-position: center; flex: auto; } +.leo-apng-container { + position: absolute; + display: flex; + justify-content: center; + align-items: center; + width: 100%; + height: 100%; +} + +.leo-apng { + animation-name: leo-apng; + animation-duration: 1.5s; + animation-iteration-count: 1; + animation-timing-function: linear; +} + .text-container { position: relative; width: 138px; @@ -60,6 +73,15 @@ animation-timing-function: linear; } +@keyframes leo-apng { + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } +} + @keyframes leo { 0% { opacity: 0;