Native Interactions Are Better — But GSAP Plugin Still Works Too

Divhunt now includes powerful native Interactions that make animations easier, faster, and more visual — no external libraries needed. Still, for users who prefer or already use GSAP, the GSAP plugin is available and works seamlessly inside Divhunt. In fact, the logic behind both systems is similar, so transitioning between them is intuitive.

Horizontal Scroll Using GSAP Plugin

Horizontal scroll is a visually engaging effect where content appears to move sideways while you scroll vertically. Technically, it's not a real horizontal scroll — you're still scrolling down, but an animation shifts your content horizontally, giving the illusion of sideways movement. In Divhunt, you can recreate this effect using the GSAP plugin and a bit of creative layout structuring.

To start, create a full-height section with extra vertical space — this controls the speed of the scroll effect. Inside that section, place a sticky container that acts as your "screen." This container stays pinned while the rest of the page scrolls, and holds the content that will animate sideways.

Next, structure your content inside a row using flex layout. Each item — like a card or image — should have a fixed percentage width (like 50% or 70%) and use flex: 0 0 auto so they don't shrink. For gaps between items, use padding inside the cards rather than gap properties — this ensures that spacing is accounted for in the GSAP translation calculation.

Once your layout is ready, install the GSAP plugin from the Divhunt Marketplace and apply it to your section. You’ll set the animation to trigger on scroll, follow scroll progress, and animate the horizontal position (x) of the content wrapper. For example, if you have four cards at 50% width, you'd move the wrapper by -150% to scroll through three of them.

The speed of the animation depends on the section’s height — taller sections mean slower, smoother scrolls. And if you want a different visual alignment at the end (e.g. two cards instead of one showing), just tweak the final x value.

For responsive behavior, you can disable the GSAP animation at certain breakpoints and fall back to a static stacked layout. Just uncheck device options in the plugin settings and reset your structure using auto heights, grid layout, and full-width cards for smaller screens.

While native Interactions now support many of the same animations natively — with more visual control — GSAP remains a flexible option for advanced scroll-based effects.