feat: main
This commit is contained in:
parent
50a919011a
commit
e386e176fc
@ -28,7 +28,7 @@ export const TextAnimation1 = props => {
|
|||||||
const newTextIdx = texts?.indexOf(titleText) + 1
|
const newTextIdx = texts?.indexOf(titleText) + 1
|
||||||
const newText = texts[newTextIdx] || texts[0]
|
const newText = texts[newTextIdx] || texts[0]
|
||||||
setTitleText(newText)
|
setTitleText(newText)
|
||||||
}, 5000)
|
}, 4000)
|
||||||
return () => clearInterval(interval)
|
return () => clearInterval(interval)
|
||||||
}, [titleText, texts])
|
}, [titleText, texts])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user