fix: fix transition from png to apng leo

This commit is contained in:
gofnnp 2023-09-16 03:05:18 +04:00
parent 30d1ded4f5
commit 154d869615

View File

@ -50,7 +50,7 @@ function BreathPage(): JSX.Element {
if (!data) return;
const leoTimeOut = setTimeout(() => {
setAsset(data[getRandomArbitrary(0, data?.length || 0)]);
}, 10_000);
}, 9_000);
return () => {
clearTimeout(leoTimeOut);
@ -104,7 +104,7 @@ function BreathPage(): JSX.Element {
className={`${styles.page} page`}
style={{
backgroundImage: `url(${
!isOpenModal && !isShowPreview ? asset?.url : "none"
!isOpenModal ? asset?.url : "none"
})`,
}}
>