Bricks Builder + GSAP: Horizontal Scroll Effect Tutorial

Learn how to create a smooth horizontal scrolling section in Bricks Builder using GSAP ScrollTrigger. In this step-by-step tutorial, I’ll show you how to build a pinned horizontal scroll effect, animate content as users scroll, and create modern website interactions without additional plugins.

Timestamps:

  • 0:00 Intro / Demo
  • 0:46 Page Set up & CSS Classes
  • 5:00 Add GSAP Code

GSAP Code

				
					<script src="https://cdn.jsdelivr.net/npm/gsap@3.15/dist/gsap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15/dist/ScrollTrigger.min.js"></script>

<script>
gsap.registerPlugin(ScrollTrigger);

const sections = gsap.utils.toArray(".side-scroll-card");

gsap.to(sections, {
    xPercent: -100 * (sections.length - 1),
    ease: "none",
    scrollTrigger: {
        trigger: ".side-scroll-container",
        pin: true,
        scrub: 1,
        snap: 1 / (sections.length - 1),
        end: () => "+=" + (
        document.querySelector(".side-scroll-container").scrollWidth - window.innerWidth),
        //markers: true
    }
});
</script>
				
			

Free Brand Messaging Worksheet

Define Your Voice and Connect with Your Audience

More Free Resources

Let's Work Together

Big ideas start with a quick chat. Let’s talk!

Business Growth Insights Worth Opening

Practical, no-fluff insights on branding, web design, and building a stronger business. As a subscriber, you’ll also get exclusive access to our $500 referral bonus program.