How to disable smooth scroll in Bricks

In certain situations like using ScrollSmoother from GreenSock you may be looking to disable smooth scrolling functionality that’s built into Bricks.

To disable Bricks’ smooth scrolling, go to Bricks → Settings → Custom code and add this in the Body (footer) scripts text area:

window.bricksSmoothScroll = () => false


Instant access to all 250+ Bricks code tutorials with BricksLabs Pro

Leave the first comment