fix: fix transition from png to apng leo
This commit is contained in:
parent
30d1ded4f5
commit
154d869615
@ -50,7 +50,7 @@ function BreathPage(): JSX.Element {
|
|||||||
if (!data) return;
|
if (!data) return;
|
||||||
const leoTimeOut = setTimeout(() => {
|
const leoTimeOut = setTimeout(() => {
|
||||||
setAsset(data[getRandomArbitrary(0, data?.length || 0)]);
|
setAsset(data[getRandomArbitrary(0, data?.length || 0)]);
|
||||||
}, 10_000);
|
}, 9_000);
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
clearTimeout(leoTimeOut);
|
clearTimeout(leoTimeOut);
|
||||||
@ -104,7 +104,7 @@ function BreathPage(): JSX.Element {
|
|||||||
className={`${styles.page} page`}
|
className={`${styles.page} page`}
|
||||||
style={{
|
style={{
|
||||||
backgroundImage: `url(${
|
backgroundImage: `url(${
|
||||||
!isOpenModal && !isShowPreview ? asset?.url : "none"
|
!isOpenModal ? asset?.url : "none"
|
||||||
})`,
|
})`,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user