You set a reveal on a Bricks section, and it fires too early, plays before anyone scrolls, or never reverses. Bricks ScrollTrigger settings fix that. ScrollTrigger is the GSAP plugin that starts, scrubs or pins an animation based on scroll position, and in Bricks Builder you can set it visually with BricksFly Pro instead of writing JavaScript. Once you know what start, end and scrub mean, you can predict exactly when each animation runs. This guide explains each setting in plain words with a diagram, builds two no-code examples, and covers markers, pinning, phones and reduced motion.
Quick answer
ScrollTrigger is the GSAP plugin that ties an animation to the scroll position: it sets where the animation starts and ends, whether it follows the scrollbar (scrub), and whether an element is pinned. In Bricks Builder, BricksFly Pro lets you set this up visually in its Advanced Animation extension: select an element, pick a trigger such as On Scroll, and set the timing. Turn on markers while you build so you can see the start and end points.
Key takeaways
- Start and end are two words each: a point on the element, then a point on the viewport. GSAP's default start is
top bottom, ortop topwhen the element is pinned. scrub: truelocks the animation to the scrollbar. A number such as1adds a 1-second catch-up delay.- Toggle actions set what happens at four moments, in this order: enter, leave, enter back, leave back. GSAP's default is
play none none none. - Pin spacing adds padding below a pinned element, so the next section does not slide under it when the pin ends.
- An animation that plays the moment the page loads usually has a start point the element has already passed.
- GSAP animation in BricksFly is a Pro feature. The free version has no GSAP.
What ScrollTrigger Does in Bricks Builder#
ScrollTrigger links an animation to where the visitor is on the page. GSAP's ScrollTrigger documentation (version 3.15 at the time of writing) describes a small set of settings that decide everything: which element is watched, where the animation becomes active and where it stops, whether the animation follows the scrollbar, and whether an element is held in place.
GSAP's core does not include ScrollTrigger: it is a separate plugin that has to load on the page. BricksFly's built-in GSAP animation engine handles that for you inside Bricks. It loads its animation libraries only on the pages that need them, and you build the animation visually instead of writing JavaScript.
ScrollTrigger vs Bricks Interactions#
Bricks has its own Interactions, available since Bricks 1.6. An interaction can run the Start animation action on triggers such as Enter viewport, Leave viewport or Scroll. Since Bricks 2.0, Enter viewport also takes a Root margin, such as 0px 0px -50% 0px, which moves the viewport line the element has to cross.
The Bricks Academy page on Interactions does not describe tying an animation's progress to the scrollbar or pinning an element. That is the line between the two:
- Use a Bricks interaction when an element only needs to play an entrance animation once it is visible.
- Use ScrollTrigger when you need an exact start and end range, an animation that follows the scrollbar, or a pinned section.

Bricks ScrollTrigger Settings in Plain Words#
Every scroll animation is built from a small set of settings. The definitions below come from GSAP's ScrollTrigger documentation. In BricksFly you set the same ideas from the Bricks panel instead of typing code; the examples further down name the fields the BricksFly docs give.
| Setting | What it does | GSAP default | Example value |
|---|---|---|---|
| Trigger | The element whose position decides where the animation starts | None | The card container |
| Start | Where the animation becomes active | top bottom (top top when pinned) | top center |
| End | Where the animation stops | bottom top | bottom center |
| Scrub | Ties progress to the scrollbar, exactly or with a delay | Off | true or 1 |
| Pin and pin spacing | Holds an element in place while active, and adds space after it | Padding added when pinned | Pin a section heading |
| Markers | Shows start, end and trigger lines while you build | Off | On while building |
| Toggle actions | What the animation does at four scroll moments | play none none none | play none none reverse |
Trigger: The Element That Is Watched#
The trigger is the element whose position in the page decides when the animation starts. It does not have to be the element that moves. For example, you can watch a whole section and animate only the heading inside it, so the heading starts when the section arrives, not when the heading does.
A common mistake is watching an element that is very short or hidden at load. Its start and end points then sit almost on top of each other, and the animation seems to skip.
Start and End: Two Words Each#
Start and end each take two words. The first word is a point on the trigger element. The second word is a point on the viewport. GSAP's default start, top bottom, means the animation becomes active when the top of the element meets the bottom of the viewport: the moment the element first peeks into view. The default end, bottom top, means it stops when the bottom of the element meets the top of the viewport: the moment it has fully left.

To start later, move the second word up the screen. top center waits until the top of the element reaches the middle of the viewport. GSAP works out these positions when the animation is created and when the window is resized. If content above the element changes height after the page loads, for example a slider or an image without a set height, the real start point moves and the animation can fire in the wrong place.
Scrub: true vs a Number#
Scrub ties the animation's progress to the scrollbar. With scrub: true, the animation is at 50% when you have scrolled halfway between start and end, and it runs backward when you scroll up. With a number, such as scrub: 1, the animation takes 1 second to catch up with the scrollbar, which smooths out jerky mouse-wheel scrolling.
Without scrub, the animation plays on its own clock: it starts at the start point and runs for its duration, however fast the visitor scrolls.

Use scrub for progress that should feel attached to the scroll: a reading bar, a line that draws, an image that moves as you pass it. Use the normal play for entrances such as cards and headings. A scrubbed entrance can stop half-faded if the visitor stops scrolling, which looks broken.
Toggle Actions: What Happens at Four Moments#
When scrub is off, toggle actions decide what the animation does at four moments, always in this order:
| Position | Moment | What it means | GSAP default |
|---|---|---|---|
| 1 | onEnter | Scrolling down past the start point | play |
| 2 | onLeave | Scrolling down past the end point | none |
| 3 | onEnterBack | Scrolling back up past the end point | none |
| 4 | onLeaveBack | Scrolling back up past the start point | none |
Each position takes one of these words: play, pause, resume, reset, restart, complete, reverse or none. With the default play none none none, an element animates in once and stays. With play none none reverse, it animates in on the way down and back out when you scroll back above the start point. With restart none none none, it replays from the beginning every time you scroll down past the start.
Pin and Pin Spacing#
Pin holds an element in place while the animation is active, so other content scrolls past it. When an element is pinned, GSAP's default start changes to top top: the pin begins when the element's top reaches the top of the viewport. Pin spacing adds padding below the pinned element for the length of the pin, so the next section waits instead of sliding underneath. Pinning has its own section below.
Markers: See the Start and End Lines#
Markers draw the start and end points on the page while you build: green for start and red for end, by GSAP's defaults. They are for building and troubleshooting only. Turn them off before you publish.
Turn On the Advanced Animation Extension#
BricksFly's scroll-triggered settings live in its Advanced Animation extension, part of BricksFly Pro. The BricksFly docs for Advanced Animation (updated July 21, 2026) list two requirements: the Bricks theme and BricksFly Pro. The steps below follow those docs.
- Goal: switch on the extension so its panel appears in Bricks.
- Where: in the WordPress dashboard, click BricksFly, open the Extension tab, and find the ScrollSmoother heading.
- Setting: toggle on Advanced Animation.
- Result: an Advanced Animation section appears in the settings of supported elements in Bricks. The docs name text, image, heading, button, icon and menu elements.
- Tip: the extension's scripts load only when the extension is switched on, so leave it off on sites that do not use it.

Example 1: Reveal Cards as They Enter the Viewport#
Goal: each card in a grid fades in and slides up as it scrolls into view, plays once, and stays. This is the toggle-actions style: the scroll starts the animation, and the animation runs on its own clock.
You need a Bricks container with three or four card blocks inside. Apply the animation to each card block, so each card starts when it reaches the screen.
1. In Bricks Builder, select the first card block and open Advanced Animation in its settings. You will see four animation type options: None, Fade Animation, 3D Wave and Custom.
2. Set the animation type to Fade Animation and choose From as the Method. The From method animates the card from an offset position into its original place, while the To method animates it away from its original position. Use From for entrance animations and To for exit animations.
3. Set the Trigger to On Scroll to start the animation as visitors scroll down the page. The available trigger options include On Scroll, On Page Load, Play with Scroll, On Hover and On Click. Keep Wrapper set to Default.
4. Configure the animation direction and timing using the following settings:
- Fade From: Bottom
- Duration:
1.5 - Ease: Power2.out
- Fade Offset:
50(default value) - Delay: Leave empty for the first card.
The Fade Offset controls the distance between the card's starting and ending positions. A higher Duration value makes the animation slower.
5. Adjust the animation's start position so it begins just inside the viewport. For example, use top center or a slightly lower position to ensure visitors can see the complete animation as the card enters the screen.
6. Enable Enable on Editor to preview the animation directly inside Bricks Builder. Once you are satisfied with the result, repeat the same settings for the remaining cards or copy and paste the animation settings to maintain consistency across all cards.

| Setting | Value |
|---|---|
| Advanced Animation type | Fade Animation |
| Method | From |
| Trigger | On Scroll |
| Wrapper | Default |
| Fade From | Bottom |
| Duration | 1.5 |
| Ease | Power2.out |
| Fade Offset | 50 |
| Enable on Editor | On while building |
In words: as each card reaches the start point, it fades from transparent to visible while moving up into place by the Fade Offset distance, over 1.5 seconds.
Tip: cards that are already on screen when the page loads have passed the start point, so they animate at once. For a grid in the first screen of the page, use On Page Load instead.
Example 2: A Progress Bar Scrubbed to the Scrollbar#
Goal: a thin bar at the top of an article fills from left to right as the visitor scrolls through the article, and empties again when they scroll back up. This is the scrub style: the scrollbar drives the animation.
Build it from two Bricks elements: a track (a container with overflow: hidden, a height such as 4px, full width) and a bar inside it (a div at 100% width with a background colour). The bar starts pushed fully to the left and slides into place. Moving it with x instead of changing its width keeps the animation on transform, which is cheaper for the browser.
- Select the progress bar div and open Advanced Animation in its settings. Set the animation type to Custom and choose From as the Method.
- Add the
xproperty with a value of-100%to define the starting position. This moves the progress bar from fully hidden on the left to its original position. Leave out the opacity property so the bar remains fully visible throughout the animation. - Set the Trigger to Play with Scroll to link the animation directly to the visitor's scrolling progress.
- Select the article container as the trigger target and configure the animation range. Set it to start when the article's top reaches the top of the viewport and finish when the article's bottom reaches the bottom of the viewport.
- Enable the animation markers and scroll through the page to test the progress bar. It should be empty when the article reaches the starting marker and fully filled when it reaches the ending marker. Once everything works correctly, turn off the markers.


| Setting | Value |
|---|---|
| Advanced Animation type | Custom |
| Method | From |
| Property and value | x: -100% |
| Trigger | Play with Scroll |
| Trigger target | The article container |
| Range | Article top at viewport top, to article bottom at viewport bottom |
In words: the bar's fill follows the reader's position in the article, from empty at the top of the article to full at the end, and runs backward when the reader scrolls up.
Turn These Settings Into a Live Scroll Animation
BricksFly Pro adds ScrollTrigger and 14 other GSAP extensions to Bricks, so you set start, end and scrub in the panel instead of writing JavaScript.
Get BricksFlyPinning With ScrollTrigger#
Pinning keeps an element fixed while the page scrolls past it, for example a heading that stays put while cards scroll beside it. In BricksFly, pinning has its own extension: Sticky / Pin Elements, also in BricksFly Pro. Its page lists Pin Trigger, End Trigger, Pin, Pin Start, Pin End and Pin Spacing, plus pin markers and breakpoints.
Three GSAP rules explain most pinning problems:
- A pin starts at
top topby default, so the element locks when its top reaches the top of the viewport. - Pin spacing adds padding after the pinned element. With pin spacing off, the next section slides up under the pinned element. GSAP turns pin spacing off by default when the pinned element's parent is a flex container.
- One ScrollTrigger pins one element, but that element can hold as many child elements as you need. Pin a wrapper instead of pinning several children.

For a pinned panel that moves sideways, see horizontal scroll in Bricks.
Debugging: Use Markers to See Start and End Points#
When an animation fires at the wrong moment, turn on markers first. They show exactly where the start and end lines sit, so you stop guessing.
- Turn on markers for the animation and open the page on the front end.
- Scroll slowly. The animation becomes active when the element's start marker crosses the viewport's start line, and stops when the end markers meet.
- If the start marker on the element is already above the viewport's start line when the page loads, the animation starts at once. Use On Page Load for that element, or move it lower on the page.
- If the lines are in the wrong place after images or sliders load, give those items a fixed height or aspect ratio, so the page does not change height after the positions are worked out.
- Turn markers off before you publish.


Content jumps after a pinned section almost always comes from pin spacing: check that it is on, and that the pinned element's parent is not a flex container.
Phones, Speed and Reduced Motion#
Scroll animations behave differently on phones: the viewport is shorter, so start and end points are closer together and a long scrub can feel rushed. GSAP's developer route is gsap.matchMedia(), which creates a different setup for each screen size. In BricksFly, the Sticky / Pin Elements page lists breakpoints; the Advanced Animation docs do not mention them.
Some visitors ask their device to reduce motion. Browsers report this through the prefers-reduced-motion media feature, which detects that a user has turned on a setting to minimize non-essential motion. Respect it: for those visitors, show the content in its final state without the slide, and keep scrubbed effects small.
For speed, web.dev advises keeping animations to transform and opacity and avoiding any property that makes the browser redo layout or paint. Example 2 follows that rule: the bar moves with x, a transform, instead of changing its width. More tips are in Bricks animation performance tips.
Set Smaller Values for Mobile Portrait#
The small device icon next to each Advanced Animation setting means the value can change per Bricks breakpoint. The docs do not mention it, but the panel itself is responsive. A 50 px slide that looks right on a laptop can feel like a jump on a phone, so give phones shorter and smaller movement.
1. Switch the Bricks Builder to Mobile Portrait by clicking the mobile portrait icon in the top toolbar. This breakpoint applies to screen widths of 478 px and below.
2. Select the card, open Advanced Animation, and adjust the animation settings for mobile. For example, set Duration to 0.8 and Fade Offset to 20. You only need to change the values that require mobile-specific adjustments; all untouched settings will retain their desktop values.
3. Preview the changes by opening the page on a mobile device or narrowing your browser window to a phone-sized width. Scroll through the cards to make sure the animations run smoothly and look appropriate on smaller screens.

On the front end, BricksFly stores both sets of values on the element and uses the one that matches the screen width.
Decide Where Smooth Scrolling Runs#
BricksFly's Scroll Smoother has its own setting for each device. In the WordPress dashboard, open BricksFly, go to the Extensions tab and click Settings next to Scroll Smoother. The window has four tabs: Desktop, Tablet portrait, Mobile landscape and Mobile portrait. Each tab has an Enable switch and a smoothing level.

Leaving smooth scrolling off on phones keeps the browser's own touch scrolling, and your ScrollTrigger animations still run. To switch it off for a single page instead, open that page in Bricks, go to Settings > Page settings > Smooth Scroll Settings and turn on Disable Smooth Scroll?.
Show the End State When Reduced Motion Is On#
To respect the reduced motion setting on a Bricks page, add a short script that skips every scroll animation to its end for those visitors. Everyone else sees the page as before.
- Where: in Bricks, open Settings (the gear icon), then Page settings > Custom code.
- Setting: paste the script below into Body (footer) scripts and save. For the whole site, use Bricks > Settings > Custom code in the WordPress dashboard instead.
- Test: in Chrome DevTools, open the Rendering panel and set Emulate CSS media feature prefers-reduced-motion to reduce, then reload. The cards should be in place with no slide.
<script>
// Show scroll animations in their end state for visitors who reduce motion
window.addEventListener('load', function () {
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) return;
setTimeout(function () {
if (!window.ScrollTrigger) return;
ScrollTrigger.getAll().forEach(function (st) {
if (st.animation) st.animation.progress(1);
st.kill();
});
}, 300);
});
</script>

In words: after the page loads, if the visitor asked for reduced motion, the script moves each ScrollTrigger animation to its last frame and removes the trigger. Cards appear in their final place, and a scrubbed progress bar stays full instead of following the scroll.
FAQs#
Why does my animation play immediately on page load?#
The element has already passed its start point when the page loads. With GSAP's default start, top bottom, any element whose top is already inside the viewport is active straight away. Use On Page Load for elements in the first screen, or check the start line with markers.
What does scrub do?#
Scrub ties the animation's progress to the scrollbar instead of a timer. Scroll halfway between start and end and the animation is halfway done; scroll back and it runs backward. Use it for progress and parallax-style effects, not for entrances.
What is the difference between scrub true and scrub 1?#
scrub: true follows the scrollbar exactly. scrub: 1 lets the animation take 1 second to catch up, which smooths out jumpy mouse-wheel scrolling. Larger numbers mean more lag.
Why does content jump after a pinned section?#
Pin spacing is usually off. Pin spacing adds padding after the pinned element so the next section waits; without it, the next section slides up underneath and then appears to jump. GSAP turns it off by default when the parent is a flex container.
Can I use ScrollTrigger in Bricks without code?#
Yes. BricksFly Pro includes ScrollTrigger among its 15 GSAP extensions, and you set the animation visually in the Bricks panel without writing JavaScript. Bricks' own Interactions can start an animation when an element enters the viewport, but the Bricks Academy does not describe scrub or pinning for them. See no-code GSAP animation for Bricks for the full list of effects.
Is ScrollTrigger in the free version of BricksFly?#
No. The free BricksFly plugin includes starter animations such as reveal, scale and slide, but no GSAP. ScrollTrigger and the other GSAP extensions are part of BricksFly Pro.
Which ScrollTrigger Setup Fits Your Bricks Project#
For most entrances, a plain On Scroll reveal with a start just inside the viewport is all you need, and it stays readable when visitors scroll fast. Use scrub only where the movement should track the reader, such as a progress bar or a line that draws. Pin only when a heading or image must stay in view, and keep pin spacing on. Whatever you build, turn markers on first: they turn guessing into a quick check.
Build Your Next Bricks Scroll Effect Without Code
Get the Advanced Animation and Sticky / Pin extensions in BricksFly Pro, with animation libraries that load only on the pages that use them.
Get BricksFly