fix: accelerated the appearance of the text by 2 times

This commit is contained in:
gofnnp 2023-09-12 03:08:16 +04:00
parent be8cc03f7f
commit ed7f9e978a
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ function CompatResultPage(): JSX.Element {
setText(aICompat?.compat?.body || "Loading...");
return aICompat.compat;
}, [api, rightUser, categoryId]);
}, [api, rightUser, categoryId, birthdate]);
useApiCall<AICompats.ICompat | AIRequests.IAiRequest>(loadData);

View File

@ -16,12 +16,12 @@ function StartBreathModalChild({
<div className={styles.text}>
<Title variant="h4" className={styles["breathe-title"]}>
{t("breathe-title").split("").map((symbol, index) => (
<span className={styles["symbol"]} style={{ animationDelay: `${index * 0.1}s` }} key={index}>{symbol}</span>
<span className={styles["symbol"]} style={{ animationDelay: `${index * 0.05}s` }} key={index}>{symbol}</span>
))}
</Title>
<Title variant="h4" className={styles["breathe-subtitle"]}>
{t("breathe-subtitle").split("").map((symbol, index) => (
<span className={styles["symbol"]} style={{ animationDelay: `${(t("breathe-title").split("").length + index) * 0.1}s` }} key={index}>{symbol}</span>
<span className={styles["symbol"]} style={{ animationDelay: `${(t("breathe-title").split("").length + index) * 0.05}s` }} key={index}>{symbol}</span>
))}
</Title>
</div>