reasonable animation system
This commit is contained in:
@@ -33,11 +33,10 @@ export default function CvPage() {
|
||||
}
|
||||
}
|
||||
useGSAP(() => {
|
||||
gsapContext?.resetTimeline()
|
||||
const items = gsap?.utils.toArray<GSAPTweenTarget>('.gsapan');
|
||||
let dir = Direction.Left;
|
||||
items?.forEach(item => {
|
||||
gsapContext?.addAnimation(gsap.from(item, nextGsapConf(dir)))
|
||||
gsapContext?.addAnimation(gsap.from(item, nextGsapConf(dir)),0)
|
||||
if (dir == Direction.Down) {
|
||||
dir = Direction.Left
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user