-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: IntroScreen 로티애니메이션 및 문구 별 애니메이션 추가
- Loading branch information
Showing
4 changed files
with
106 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
client/src/features/workSpace/components/IntroScreen.animation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
export const animation = { | ||
initial: { | ||
y: -100, | ||
opacity: 0, | ||
}, | ||
animate: { | ||
y: 0, | ||
opacity: 1, | ||
}, | ||
transition: { | ||
type: "spring", | ||
stiffness: 300, | ||
damping: 30, | ||
duration: 2, | ||
}, | ||
}; | ||
export const containerVariants = { | ||
hidden: { | ||
opacity: 0, | ||
}, | ||
visible: { | ||
opacity: 1, | ||
}, | ||
}; | ||
|
||
export const topTextVariants = { | ||
hidden: { | ||
opacity: 0, | ||
y: -50, | ||
}, | ||
visible: { | ||
opacity: 1, | ||
y: 0, | ||
transition: { | ||
delay: 1, | ||
duration: 0.4, | ||
ease: "easeOut", | ||
}, | ||
}, | ||
}; | ||
|
||
export const bottomTextVariants = { | ||
hidden: { | ||
opacity: 0, | ||
y: 50, | ||
}, | ||
visible: { | ||
opacity: 1, | ||
y: 0, | ||
transition: { | ||
delay: 2, | ||
duration: 0.3, | ||
ease: "easeOut", | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,25 @@ | ||
import { LoadingSpinner } from "@components/lotties/LoadingSpinner"; | ||
import { IntroScreenContainer } from "./IntroScreen.style"; | ||
import { motion } from "framer-motion"; | ||
import { NoctaIcon } from "@components/lotties/NoctaIcon"; | ||
import { containerVariants, bottomTextVariants, topTextVariants } from "./IntroScreen.animation"; | ||
import { IntroScreenContainer, topText, bottomText } from "./IntroScreen.style"; | ||
|
||
export const IntroScreen = () => { | ||
return ( | ||
<div className={IntroScreenContainer}> | ||
<LoadingSpinner size={200} /> | ||
</div> | ||
<motion.div | ||
className={IntroScreenContainer} | ||
variants={containerVariants} | ||
initial="hidden" | ||
animate="visible" | ||
transition={{ duration: 0.6, ease: "easeInOut" }} | ||
exit={{ opacity: 0 }} | ||
> | ||
<motion.div variants={topTextVariants} className={topText}> | ||
밤하늘의 별빛처럼, 자유로운 인터랙션 실시간 에디터 | ||
</motion.div> | ||
<NoctaIcon size={200} /> | ||
<motion.div variants={bottomTextVariants} className={bottomText}> | ||
Nocta | ||
</motion.div> | ||
</motion.div> | ||
); | ||
}; |