Ria Choi
← Portfolio

Ria Choi Portfolio

My earlier personal portfolio, built as a hands-on GSAP exercise in continuous and responsive motion.

Ria Choi Portfolio

I built this version of my portfolio to practice GSAP. I wanted the project preview to feel active while visitors were still deciding where to go. I used two columns of work imagery to experiment with counter-motion, loop timing, and the point where a repeating animation resets.

Learning how to build a continuous GSAP loop

Each React ref points to one visual track. The artwork repeats along each track, so travelling half its height brings the next copy into the same viewport position. I start the second track halfway along and move it in the opposite direction. Both use the same duration and linear easing so the eye reads a steady flow.

JSX
useEffect(() => {
    const up = upTrack.current
    const down = downTrack.current

    // UP
    gsap.to(up, {
        yPercent: -50,
        duration: 20,
        ease: "none",
        repeat: -1,
    })

    // DOWN
    gsap.set(down, { yPercent: -50 })

    gsap.to(down, {
        yPercent: 0,
        duration: 20,
        ease: "none",
        repeat: -1,
    })
}, [])

Keeping motion inside the preview

The columns sit in clipped containers so the animation can continue without pushing the page layout. The portfolio also keeps project-list data separate from its display components. I could tune the hero motion while keeping the rest of the project navigation readable.

What I learned

This taught me to design a loop around the geometry of its content. Matching the start and end frames mattered more for a smooth repeat than adding a more complicated easing curve.

Related article

Animated Hero Banner Tutorial