Minhyeok Park 2fc8269442
All checks were successful
/ deploy_site (push) Successful in 21s
chore: remove trailing comma
2025-01-16 09:28:24 +09:00

31 lines
755 B
TypeScript

import { FC, useEffect, useState } from 'react'
import { AnimatePresence, motion, TargetAndTransition } from 'framer-motion'
import style from './style.module.scss'
import Suika from '../Assets/favicon.webp'
export const LandingAnimation: FC = () => {
const [isVisible, setVisible] = useState(true)
const exitAnimation: TargetAndTransition = {
opacity: 0
}
useEffect(() => {
setTimeout(() => {
setVisible(false)
}, 1000)
}, [])
return (
<AnimatePresence>
{isVisible && (
<motion.div exit={exitAnimation} className={style.container}>
<img src={Suika} alt="suika" />
<h1>The PTOOLS</h1>
<p>Right tools for you!</p>
</motion.div>
)}
</AnimatePresence>
)
}