Add delay on SiteTitle reveal animation

This commit is contained in:
2022-06-22 23:17:56 +02:00
parent 33487cba5c
commit 255b00ab66

View File

@@ -1,6 +1,7 @@
<script lang="ts"> <script lang="ts">
import SplitText from '$components/SplitText.svelte' import SplitText from '$components/SplitText.svelte'
import { reveal, fly } from '$animations/index' import { reveal, fly } from '$animations/index'
import { DURATION } from '$utils/contants'
export let variant: string = 'lines' export let variant: string = 'lines'
export let tag: string = 'h1' export let tag: string = 'h1'
@@ -16,6 +17,7 @@
duration: 1000, duration: 1000,
from: '110%', from: '110%',
opacity: false, opacity: false,
delay: DURATION.PAGE_IN
}, },
threshold: 0, threshold: 0,
}} }}